@@ -52,7 +52,7 @@ public function testCastDateTime()
52
52
53
53
$ xDump = <<<'EODUMP'
54
54
array:1 [
55
- "\x00~\x00date" => 2017-08-30 00:00:00.000000 Europe/Zurich (+02:00)
55
+ "\x00~\x00date" => 2017-08-30 00:00:00.0 Europe/Zurich (+02:00)
56
56
]
57
57
EODUMP;
58
58
@@ -61,7 +61,7 @@ public function testCastDateTime()
61
61
$ xDump = <<<'EODUMP'
62
62
Symfony\Component\VarDumper\Caster\ConstStub {
63
63
+type: 1
64
- +class: "2017-08-30 00:00:00.000000 Europe/Zurich (+02:00)"
64
+ +class: "2017-08-30 00:00:00.0 Europe/Zurich (+02:00)"
65
65
+value: """
66
66
Wednesday, August 30, 2017\n
67
67
+%a from now\n
@@ -81,8 +81,15 @@ public function testCastDateTime()
81
81
public function provideDateTimes ()
82
82
{
83
83
return array (
84
- array ('2017-04-30 00:00:00.000000 ' , 'Europe/Zurich ' , '2017-04-30 00:00:00.000000 Europe/Zurich (+02:00) ' ),
85
- array ('2017-04-30 00:00:00.000000 ' , '+02:00 ' , '2017-04-30 00:00:00.000000 +02:00 ' ),
84
+ array ('2017-04-30 00:00:00.000000 ' , 'Europe/Zurich ' , '2017-04-30 00:00:00.0 Europe/Zurich (+02:00) ' ),
85
+ array ('2017-04-30 00:00:00.000000 ' , '+02:00 ' , '2017-04-30 00:00:00.0 +02:00 ' ),
86
+
87
+ array ('2017-04-30 00:00:00.100000 ' , '+02:00 ' , '2017-04-30 00:00:00.100 +02:00 ' ),
88
+ array ('2017-04-30 00:00:00.120000 ' , '+02:00 ' , '2017-04-30 00:00:00.120 +02:00 ' ),
89
+ array ('2017-04-30 00:00:00.123000 ' , '+02:00 ' , '2017-04-30 00:00:00.123 +02:00 ' ),
90
+ array ('2017-04-30 00:00:00.123400 ' , '+02:00 ' , '2017-04-30 00:00:00.123400 +02:00 ' ),
91
+ array ('2017-04-30 00:00:00.123450 ' , '+02:00 ' , '2017-04-30 00:00:00.123450 +02:00 ' ),
92
+ array ('2017-04-30 00:00:00.123456 ' , '+02:00 ' , '2017-04-30 00:00:00.123456 +02:00 ' ),
86
93
);
87
94
}
88
95
@@ -162,7 +169,7 @@ public function testCastInterval($intervalSpec, $invert, $xInterval, $xSeconds)
162
169
public function provideIntervals ()
163
170
{
164
171
$ i = new \DateInterval ('PT0S ' );
165
- $ ms = \PHP_VERSION_ID >= 70100 && isset ($ i ->f ) ? '.000000 ' : '' ;
172
+ $ ms = \PHP_VERSION_ID >= 70100 && isset ($ i ->f ) ? '.0 ' : '' ;
166
173
167
174
return array (
168
175
array ('PT0S ' , 0 , '0s ' , '0s ' ),
0 commit comments