source: branches/version-2_5-dev/data/module/Calendar/tests/second_test.php @ 20116

Revision 20116, 814 bytes checked in by nanasess, 13 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1<?php
2// $Id$
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.