Changeset 1498
- Timestamp:
- 04/05/08 00:42:11 (4 months ago)
- Files:
-
- trunk/src/test/php/net/stubbles/util/UtilTestSuite.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanCustomTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanDayTestCase.php (modified) (2 diffs)
- trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanMonthTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanWeekTestCase.php (modified) (1 diff)
- trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanYesterdayTestCase.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/test/php/net/stubbles/util/UtilTestSuite.php
r1488 r1498 40 40 $suite->addTestFile($dir . '/datespan/stubDateSpanMonthTestCase.php'); 41 41 $suite->addTestFile($dir . '/datespan/stubDateSpanWeekTestCase.php'); 42 $suite->addTestFile($dir . '/datespan/stubDateSpanYesterdayTestCase.php'); 42 43 43 44 // logging api trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanCustomTestCase.php
r1288 r1498 24 24 { 25 25 $dateSpanCustom = new stubDateSpanCustom('2006-04-04', '2006-04-20'); 26 $this->assertEquals( $dateSpanCustom->toString(), '04.04.2006 bis 20.04.2006');26 $this->assertEquals('04.04.2006 bis 20.04.2006', $dateSpanCustom->toString()); 27 27 } 28 28 trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanDayTestCase.php
r1288 r1498 24 24 { 25 25 $dateSpanDay = new stubDateSpanDay('2007-04-04'); 26 $this->assertEquals( $dateSpanDay->toString(), 'Wednesday, 04.04.2007');26 $this->assertEquals('Wednesday, 04.04.2007', $dateSpanDay->toString()); 27 27 } 28 28 … … 53 53 $dateSpanDay = new stubDateSpanDay('now'); 54 54 $this->assertFalse($dateSpanDay->isFuture()); 55 $dateSpanDay = new stubDateSpanDay(); 56 $this->assertFalse($dateSpanDay->isFuture()); 55 57 } 56 58 } trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanMonthTestCase.php
r1288 r1498 24 24 { 25 25 $dateSpanMonth = new stubDateSpanMonth(2007, 4); 26 $this->assertEquals($dateSpanMonth->toString(), '01.04.2007 bis 30.04.2007'); 26 $this->assertEquals('01.04.2007 bis 30.04.2007', $dateSpanMonth->toString()); 27 $dateSpanMonth = new stubDateSpanMonth(null, 4); 28 $this->assertEquals('01.04.' . date('Y') . ' bis 30.04.' . date('Y'), $dateSpanMonth->toString()); 27 29 } 28 30 trunk/src/test/php/net/stubbles/util/datespan/stubDateSpanWeekTestCase.php
r1288 r1498 24 24 { 25 25 $dateSpanWeek = new stubDateSpanWeek('2007-04-02'); 26 $this->assertEquals( $dateSpanWeek->toString(), '02.04.2007 bis 08.04.2007');26 $this->assertEquals('02.04.2007 bis 08.04.2007', $dateSpanWeek->toString()); 27 27 } 28 28
