fix Ldap converter serialize test

Starting from PHP versions 5.4.30, 5.5.14 and 5.6.0beta4, the serialized
representation of a DateTime includes fractional seconds.
The data provider must check the PHP version and provide a correct
serialized representation of the DateTime object.

refs #6468