diff --git a/tests/lang/compare_objects_basic1.phpt b/tests/lang/compare_objects_basic1.phpt new file mode 100644 index 00000000000..fe312fc59f2 --- /dev/null +++ b/tests/lang/compare_objects_basic1.phpt @@ -0,0 +1,60 @@ +--TEST-- +Test standard 'compare' object handler +--FILE-- + + +===DONE=== +--EXPECT-- +Simple test for standard compare object handler + +-- The following compare should return TRUE -- +bool(true) + +-- All the following compares should return FALSE -- +bool(false) +bool(false) +bool(false) +bool(false) +bool(false) +bool(false) +===DONE=== \ No newline at end of file diff --git a/tests/lang/compare_objects_basic2.phpt b/tests/lang/compare_objects_basic2.phpt new file mode 100644 index 00000000000..a2c34d06ad8 --- /dev/null +++ b/tests/lang/compare_objects_basic2.phpt @@ -0,0 +1,28 @@ +--TEST-- +Test object compare when object handler different +--FILE-- + + +===DONE=== +--EXPECTF-- +Simple test comparing two objects with different compare callback handler + +Notice: Object of class X could not be converted to int in %s on line %d + +Notice: Object of class DateTime could not be converted to int in %s on line %d +bool(true) +===DONE=== \ No newline at end of file