Login   Register  
PHP Classes
elePHPant
Icontem

File: test/senderTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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:
Date: 7 months ago
Size: 486 bytes
 

Contents

Class file image Download
<?php
include_once "../sender.php";
include_once 
"../cleaner.php";

class 
SenderTest extends PHPUnit_Framework_TestCase {
   protected static 
$sender null;

   public function 
setUp() {
      
self::$sender = new DelayedMail\Sender(5,"delayedmail.ini");
   }

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