diff options
author | Antony Dovgal <tony2001@php.net> | 2006-05-31 14:54:52 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-05-31 14:54:52 +0000 |
commit | 8f78a2727b34e7586de966b6202cfb5e9cc25b8c (patch) | |
tree | 817499eccbea9b04f73126cf4984041783897a61 /Zend | |
parent | 8df40bdb313d84bf606ce0052954b8031bc5a91f (diff) | |
download | php-git-8f78a2727b34e7586de966b6202cfb5e9cc25b8c.tar.gz |
add tests for E_STRICT that will become E_FATAL in PHP 6
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/tests/objects_002.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_003.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_004.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_005.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_006.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_007.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_008.phpt | 24 | ||||
-rw-r--r-- | Zend/tests/objects_009.phpt | 24 |
8 files changed, 192 insertions, 0 deletions
diff --git a/Zend/tests/objects_002.phpt b/Zend/tests/objects_002.phpt new file mode 100644 index 0000000000..87ba0fdc3b --- /dev/null +++ b/Zend/tests/objects_002.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo() {} +} + +class test2 extends test { + function foo() {} +} + +class test3 extends test { + function foo($arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_003.phpt b/Zend/tests/objects_003.phpt new file mode 100644 index 0000000000..1c254290f7 --- /dev/null +++ b/Zend/tests/objects_003.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo($arg) {} +} + +class test2 extends test { + function foo($arg) {} +} + +class test3 extends test { + function foo($arg, $arg2) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_004.phpt b/Zend/tests/objects_004.phpt new file mode 100644 index 0000000000..35ab4775b1 --- /dev/null +++ b/Zend/tests/objects_004.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo($arg) {} +} + +class test2 extends test { + function foo($arg) {} +} + +class test3 extends test { + function foo(&$arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_005.phpt b/Zend/tests/objects_005.phpt new file mode 100644 index 0000000000..d583c9be90 --- /dev/null +++ b/Zend/tests/objects_005.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function &foo() {} +} + +class test2 extends test { + function &foo() {} +} + +class test3 extends test { + function foo() {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_006.phpt b/Zend/tests/objects_006.phpt new file mode 100644 index 0000000000..fb2e28b3af --- /dev/null +++ b/Zend/tests/objects_006.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo($arg, $arg2 = NULL) {} +} + +class test2 extends test { + function foo($arg, $arg2 = NULL) {} +} + +class test3 extends test { + function foo($arg, $arg2) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_007.phpt b/Zend/tests/objects_007.phpt new file mode 100644 index 0000000000..2fce04a17d --- /dev/null +++ b/Zend/tests/objects_007.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo($arg, &$arg2 = NULL) {} +} + +class test2 extends test { + function foo($arg, &$arg2 = NULL) {} +} + +class test3 extends test { + function foo($arg, &$arg2) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_008.phpt b/Zend/tests/objects_008.phpt new file mode 100644 index 0000000000..b61d16786c --- /dev/null +++ b/Zend/tests/objects_008.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo(Test $arg) {} +} + +class test2 extends test { + function foo(Test $arg) {} +} + +class test3 extends test { + function foo(Test3 $arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done diff --git a/Zend/tests/objects_009.phpt b/Zend/tests/objects_009.phpt new file mode 100644 index 0000000000..5fad0046a8 --- /dev/null +++ b/Zend/tests/objects_009.phpt @@ -0,0 +1,24 @@ +--TEST-- +method overloading with different method signature +--INI-- +error_reporting=8191 +--FILE-- +<?php + +class test { + function foo(Test $arg) {} +} + +class test2 extends test { + function foo(Test $arg) {} +} + +class test3 extends test { + function foo($arg) {} +} + +echo "Done\n"; +?> +--EXPECTF-- +Strict Standards: Declaration of test3::foo() should be compatible with that of test::foo() in %s on line %d +Done |