UTCommunication Class Reference
[Unit Tests - Unit tests for all classes/functions in fareofficelib.]

Unit test for all functions in Communication.class.php. More...

List of all members.

Public Member Functions

 doTest ()

Private Member Functions

 _testSendEmail ()
 _testSendSms ()


Detailed Description

Unit test for all functions in Communication.class.php.

Author:
Daniel Lindh <[email protected]>

Definition at line 8 of file UTCommunication.class.php.


Member Function Documentation

UTCommunication::_testSendEmail (  )  [private]

Definition at line 19 of file UTCommunication.class.php.

00020   {
00021     $this->setSectionLabel('sendEmail');
00022     $communication = new Communication(new FileLock('/tmp/locks/'));
00023     eval($this->needFalse('$communication->sendEmail
00024     (
00025       "[email protected]",
00026       "[email protected]",
00027       "I\'m afraid I have some bad news.",
00028       "Well that\'s a switch.",
00029       "<b>Well that\"s a switch.</b>"
00030     )'));
00031   }

UTCommunication::_testSendSms (  )  [private]

Definition at line 33 of file UTCommunication.class.php.

00034   {
00035     $this->setSectionLabel('sendEmail');
00036     $communication = new Communication(new FileLock('/tmp/locks/'));
00037     eval($this->needFalse('$communication->sendSms
00038     (
00039       "[email protected]",
00040       "fareofficelib",
00041       "073xxxxx",
00042       "I\'m afraid I have some bad news. Well that\'s a switch."
00043     )'));
00044   }

UTCommunication::doTest (  ) 

Definition at line 10 of file UTCommunication.class.php.

00011   {
00012     eval($this->needNotEmpty('"Tests are disabled"'));
00013     /*
00014     $this->_testSendEmail();
00015     $this->_testSendSms();
00016     */
00017   }


The documentation for this class was generated from the following file:

Generated on Wed May 6 23:28:24 2009 for fareofficelib by  doxygen 1.5.8