PHP Classes

File: test/senderTest.php

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.   PHP Delayed Email class   test/senderTest.php   Download  
File: test/senderTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Delayed Email class
Queue email messages in files to send them later
Author: By
Last change: Update of test/senderTest.php
Date: 11 months ago
Size: 1,141 bytes
 

Contents

Class file image Download
<?php
/**
 * Sender test
 *
 * PHP version 5.3
 *
 * @category Tests
 * @package DelayedMail
 * @author Eustáquio Rangel <eustaquiorangel@gmail.com>
 * @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 * @link http://github.com/taq/delayedmail
 *
 */
require_once "../vendor/autoload.php";

/**
 * Main class
 *
 * PHP version 5.3
 *
 * @category Tests
 * @package DelayedMail
 * @author Eustáquio Rangel <eustaquiorangel@gmail.com>
 * @license http://www.gnu.org/licenses/gpl-2.0.html GPLv2
 * @link http://github.com/taq/delayedmail
 *
 */
class SenderTest extends PHPUnit_Framework_TestCase
{
    protected static
$sender = null;

   
/**
     * Run before each test
     *
     * @return null
     */
   
public function setUp()
    {
       
self::$sender = new DelayedMail\Sender(5, "delayedmail.ini");
    }

   
/**
     * Test cleaner
     *
     * @return null
     */
   
public function testCleaner()
    {
       
$this->assertNotNull(self::$sender->getCleaner());
       
$this->assertEquals("cleaning files older than 1 minutes on /tmp/delayedmailtest/sent", self::$sender->getCleaner(). "");
    }
}