Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #385 from mhujer/datetime56
Browse files Browse the repository at this point in the history
Serialized DateTime includes fractions of seconds since 5.6.0beta4
  • Loading branch information
froschdesign committed Jun 25, 2014
2 parents 820aab2 + 3945e88 commit b5be90c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/Zend/Ldap/ConverterTest.php
Expand Up @@ -119,6 +119,13 @@ public function toLdapSerializeProvider(){
array('O:8:"DateTime":0:{}', new DateTime('@0')),
array('a:3:{i:0;s:4:"test";i:1;i:1;s:3:"foo";s:3:"bar";}', array('test',1,'foo'=>'bar')),
);
} elseif (version_compare(PHP_VERSION, '5.6.0beta4', '>=')) {
return array(
array('N;', null),
array('i:1;', 1),
array('O:8:"DateTime":3:{s:4:"date";s:26:"1970-01-01 00:00:00.000000";s:13:"timezone_type";i:1;s:8:"timezone";s:6:"+00:00";}', new DateTime('@0')),
array('a:3:{i:0;s:4:"test";i:1;i:1;s:3:"foo";s:3:"bar";}', array('test',1,'foo'=>'bar')),
);
} else {
return array(
array('N;', null),
Expand Down

0 comments on commit b5be90c

Please sign in to comment.