From: andy wharmby Date: Wed, 17 Jun 2009 19:15:19 +0000 (+0000) Subject: New test for standard object compare handler. Tested on Windows, Linux and Linux 64 X-Git-Tag: php-5.3.0RC4~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5b5f13b7947f17f4eb5472ba7a11e79339d4bfa;p=php New test for standard object compare handler. Tested on Windows, Linux and Linux 64 --- diff --git a/tests/lang/compare_objects_basic1.phpt b/tests/lang/compare_objects_basic1.phpt new file mode 100644 index 0000000000..fe312fc59f --- /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 0000000000..a2c34d06ad --- /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