Rev | Line | |
---|
[17073] | 1 | <?php |
---|
| 2 | // $Id: second_test.php,v 1.1 2004/05/24 22:25:43 quipo Exp $ |
---|
| 3 | |
---|
| 4 | require_once('simple_include.php'); |
---|
| 5 | require_once('calendar_include.php'); |
---|
| 6 | |
---|
| 7 | require_once('./calendar_test.php'); |
---|
| 8 | |
---|
| 9 | class TestOfSecond extends TestOfCalendar { |
---|
| 10 | function TestOfSecond() { |
---|
| 11 | $this->UnitTestCase('Test of Second'); |
---|
| 12 | } |
---|
| 13 | function setUp() { |
---|
| 14 | $this->cal = new Calendar_Second(2003,10,25,13,32,43); |
---|
| 15 | } |
---|
| 16 | function testPrevDay_Array () { |
---|
| 17 | $this->assertEqual( |
---|
| 18 | array( |
---|
| 19 | 'year' => 2003, |
---|
| 20 | 'month' => 10, |
---|
| 21 | 'day' => 24, |
---|
| 22 | 'hour' => 0, |
---|
| 23 | 'minute' => 0, |
---|
| 24 | 'second' => 0), |
---|
| 25 | $this->cal->prevDay('array')); |
---|
| 26 | } |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | if (!defined('TEST_RUNNING')) { |
---|
| 30 | define('TEST_RUNNING', true); |
---|
| 31 | $test = &new TestOfSecond(); |
---|
| 32 | $test->run(new HtmlReporter()); |
---|
| 33 | } |
---|
| 34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.