00001 <?php
00008 class UTCommunication extends foUnitTestBase
00009 {
00010 public function doTest()
00011 {
00012 eval($this->needNotEmpty('"Tests are disabled"'));
00013
00014
00015
00016
00017 }
00018
00019 private function _testSendEmail()
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 }
00032
00033 private function _testSendSms()
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 }
00045 }
00046 ?>