From: Willem-Jan Date: Mon, 30 Nov 2015 14:35:16 +0000 (+0100) Subject: Also test against equality X-Git-Tag: php-7.0.4RC1~20^2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bbbc47e796ca562095f3e8c419f35b031f687d3;p=php Also test against equality --- diff --git a/ext/date/tests/bug68078.phpt b/ext/date/tests/bug68078.phpt index 49fd0ec2d1..20be0a49c8 100644 --- a/ext/date/tests/bug68078.phpt +++ b/ext/date/tests/bug68078.phpt @@ -6,11 +6,14 @@ Comparing datetime objects should account for microseconds date_default_timezone_set('UTC'); $date1 = DateTime::createFromFormat('U.u', '1448889063.3531'); $date2 = DateTime::createFromFormat('U.u', '1448889063.5216'); +$date3 = DateTime::createFromFormat('U.u', '1448889063.5216'); var_dump($date1 == $date2); var_dump($date1 < $date2); var_dump($date2 > $date1); +var_dump($date2 == $date3); --EXPECT-- bool(false) bool(true) bool(true) +bool(true)