OSDN Git Service

初回コミット(v2.6.17.1)
[magic3/magic3.git] / include / lib / Calendar-0.5.5 / tests / second_test.php
1 <?php
2 // $Id: second_test.php 4940 2012-06-06 02:20:28Z fishbone $
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 ?>