compare_objects_basic2.phpt 463 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Test object compare when object handler different
  3. --FILE--
  4. <?php
  5. //Set the default time zone
  6. date_default_timezone_set("Europe/London");
  7. echo "Simple test comparing two objects with different compare callback handler\n";
  8. class X {
  9. }
  10. $obj1 = new X();
  11. $obj2 = new DateTime(("2009-02-12 12:47:41 GMT"));
  12. var_dump($obj1 == $obj2);
  13. ?>
  14. ===DONE===
  15. --EXPECT--
  16. Simple test comparing two objects with different compare callback handler
  17. bool(false)
  18. ===DONE===