Annotation of embedaddon/php/tests/lang/compare_objects_basic2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test object compare when object handler different 
                      3: --FILE--
                      4: 
                      5: <?php 
                      6: 
                      7: //Set the default time zone 
                      8: date_default_timezone_set("Europe/London");
                      9: 
                     10: echo "Simple test comparing two objects with different compare callback handler\n";
                     11: 
                     12: class X {
                     13: }
                     14: 
                     15: $obj1 = new X();
                     16: $obj2 = new DateTime(("2009-02-12 12:47:41 GMT"));
                     17: 
                     18: var_dump($obj1 == $obj2);
                     19: ?>
                     20: ===DONE===
                     21: --EXPECTF--
                     22: Simple test comparing two objects with different compare callback handler
                     23: 
                     24: Notice: Object of class X could not be converted to int in %s on line %d
                     25: 
                     26: Notice: Object of class DateTime could not be converted to int in %s on line %d
                     27: bool(true)
                     28: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>