1 | <?php |
||
7 | class DateTest extends BaseDateTypeTestCase |
||
8 | { |
||
9 | /** |
||
10 | * {@inheritDoc} |
||
11 | */ |
||
12 | protected function setUp() |
||
18 | |||
19 | public function testDateConvertsToPHPValue() |
||
27 | |||
28 | public function testDateResetsNonDatePartsToZeroUnixTimeValues() |
||
34 | |||
35 | public function testDateResetsSummerTimeAffection() |
||
36 | { |
||
37 | date_default_timezone_set('Europe/Berlin'); |
||
38 | |||
39 | $date = $this->type->convertToPHPValue('2009-08-01', $this->platform); |
||
40 | self::assertEquals('00:00:00', $date->format('H:i:s')); |
||
41 | self::assertEquals('2009-08-01', $date->format('Y-m-d')); |
||
42 | |||
43 | $date = $this->type->convertToPHPValue('2009-11-01', $this->platform); |
||
44 | self::assertEquals('00:00:00', $date->format('H:i:s')); |
||
45 | self::assertEquals('2009-11-01', $date->format('Y-m-d')); |
||
46 | } |
||
47 | |||
48 | public function testInvalidDateFormatConversion() |
||
53 | } |
||
54 |