diff --git a/Zend/tests/objects_001.phpt b/Zend/tests/objects_001.phpt new file mode 100644 index 00000000000..5cdc3dded0c --- /dev/null +++ b/Zend/tests/objects_001.phpt @@ -0,0 +1,60 @@ +--TEST-- +comparing objects to other types +--FILE-- + +--EXPECTF-- +bool(false) +bool(true) +bool(true) +bool(false) +bool(false) +bool(true) +bool(false) +bool(true) + +Notice: Object of class Bar could not be converted to int in %s on line %d +bool(false) + +Notice: Object of class Bar could not be converted to int in %s on line %d +bool(true) + +Notice: Object of class Bar could not be converted to int in %s on line %d +bool(true) + +Notice: Object of class Bar could not be converted to int in %s on line %d +bool(false) + +Notice: Object of class Bar could not be converted to double in %s on line %d +bool(true) + +Notice: Object of class Bar could not be converted to double in %s on line %d +bool(false) + +Notice: Object of class Bar could not be converted to int in %s on line %d +bool(true) +Done