php-src/tests/lang/compare_objects_basic2.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

25 lines
467 B
PHP

--TEST--
Test object compare when object handler different
--FILE--
<?php
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "Simple test comparing two objects with different compare callback handler\n";
class X {
}
$obj1 = new X();
$obj2 = new DateTime(("2009-02-12 12:47:41 GMT"));
var_dump($obj1 == $obj2);
?>
===DONE===
--EXPECT--
Simple test comparing two objects with different compare callback handler
bool(false)
===DONE===