source: branches/comu-ver2/data/module/Calendar/tests/second_test.php @ 17073

Revision 17073, 867 bytes checked in by Yammy, 16 years ago (diff)

カレンダーブロックを追加(PEAR::Calendarクラス使用仕様)

Line 
1<?php
2// $Id: second_test.php,v 1.1 2004/05/24 22:25:43 quipo Exp $
3
4require_once('simple_include.php');
5require_once('calendar_include.php');
6
7require_once('./calendar_test.php');
8
9class 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
29if (!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.