mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
21 lines
441 B
PHP
21 lines
441 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);
|
|
?>
|
|
--EXPECT--
|
|
Simple test comparing two objects with different compare callback handler
|
|
bool(false)
|