|
|
@@ -710,8 +710,12 @@ class TimeTest extends TestCase
|
|
|
*/
|
|
|
public function testJsonEnconde($class)
|
|
|
{
|
|
|
+ if (version_compare(INTL_ICU_VERSION, '50.0', '<')) {
|
|
|
+ $this->markTestSkipped('ICU 5x is needed');
|
|
|
+ }
|
|
|
+
|
|
|
$time = new $class('2014-04-20 10:10:10');
|
|
|
- $this->assertEquals('"2014-04-20T10:10:10+0000"', json_encode($time));
|
|
|
+ $this->assertEquals('"2014-04-20T10:10:10+00:00"', json_encode($time));
|
|
|
|
|
|
$class::setJsonEncodeFormat('yyyy-MM-dd HH:mm:ss');
|
|
|
$this->assertEquals('"2014-04-20 10:10:10"', json_encode($time));
|