From: Antony Dovgal Date: Wed, 31 May 2006 14:55:16 +0000 (+0000) Subject: add tests for new E_FATALs X-Git-Tag: BEFORE_NEW_OUTPUT_API~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fdb25459111ef9a81c4f52a5d2f400c3a875791;p=php add tests for new E_FATALs --- diff --git a/Zend/tests/objects_001.phpt b/Zend/tests/objects_001.phpt new file mode 100644 index 0000000000..5cdc3dded0 --- /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 diff --git a/Zend/tests/objects_002.phpt b/Zend/tests/objects_002.phpt new file mode 100644 index 0000000000..ac79e8de97 --- /dev/null +++ b/Zend/tests/objects_002.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_003.phpt b/Zend/tests/objects_003.phpt new file mode 100644 index 0000000000..9041e30110 --- /dev/null +++ b/Zend/tests/objects_003.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_004.phpt b/Zend/tests/objects_004.phpt new file mode 100644 index 0000000000..14620c15a4 --- /dev/null +++ b/Zend/tests/objects_004.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_005.phpt b/Zend/tests/objects_005.phpt new file mode 100644 index 0000000000..d4ab8697c4 --- /dev/null +++ b/Zend/tests/objects_005.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_006.phpt b/Zend/tests/objects_006.phpt new file mode 100644 index 0000000000..67f43c33bb --- /dev/null +++ b/Zend/tests/objects_006.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_007.phpt b/Zend/tests/objects_007.phpt new file mode 100644 index 0000000000..21e07c0c9e --- /dev/null +++ b/Zend/tests/objects_007.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_008.phpt b/Zend/tests/objects_008.phpt new file mode 100644 index 0000000000..49ad42ded2 --- /dev/null +++ b/Zend/tests/objects_008.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d diff --git a/Zend/tests/objects_009.phpt b/Zend/tests/objects_009.phpt new file mode 100644 index 0000000000..67611f14e2 --- /dev/null +++ b/Zend/tests/objects_009.phpt @@ -0,0 +1,23 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- + +--EXPECTF-- +Fatal error: Declaration of test3::foo() must be compatible with that of test::foo() in %s on line %d