PHP Classes

File: test/senderTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 1 year ago
Size: 486 bytes


Class file image Download
include_once "../sender.php";

SenderTest extends PHPUnit_Framework_TestCase {
   protected static
$sender = null;

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

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