diff options
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/use_const/conflicting_use_alias.phpt | 2 | ||||
-rw-r--r-- | Zend/tests/use_const/function_and_cons.phpt | 25 | ||||
-rw-r--r-- | Zend/tests/use_const/shadow_core_null.phpt | 12 | ||||
-rw-r--r-- | Zend/tests/use_function/conflicting_use_const_alias.phpt | 2 |
4 files changed, 2 insertions, 39 deletions
diff --git a/Zend/tests/use_const/conflicting_use_alias.phpt b/Zend/tests/use_const/conflicting_use_alias.phpt index 91cd020968..8b563a4ca9 100644 --- a/Zend/tests/use_const/conflicting_use_alias.phpt +++ b/Zend/tests/use_const/conflicting_use_alias.phpt @@ -1,5 +1,5 @@ --TEST-- -use and use function with the same alias +use and use const with the same alias --FILE-- <?php diff --git a/Zend/tests/use_const/function_and_cons.phpt b/Zend/tests/use_const/function_and_cons.phpt deleted file mode 100644 index 6c975ba923..0000000000 --- a/Zend/tests/use_const/function_and_cons.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -use function and use const in the same block ---FILE-- -<?php - -namespace foo { - const bar = 'local const'; - function bar() { - return 'local function'; - } -} - -namespace { - use const foo\bar; - use function foo\bar; - var_dump(bar); - var_dump(bar()); - echo "Done\n"; -} - -?> ---EXPECT-- -string(11) "local const" -string(14) "local function" -Done diff --git a/Zend/tests/use_const/shadow_core_null.phpt b/Zend/tests/use_const/shadow_core_null.phpt deleted file mode 100644 index 5bbc9329df..0000000000 --- a/Zend/tests/use_const/shadow_core_null.phpt +++ /dev/null @@ -1,12 +0,0 @@ ---TEST-- -shadowing null with a local version ---FILE-- -<?php - -namespace foo { - const null = 42; -} - -?> ---EXPECTF-- -Fatal error: Cannot redeclare constant 'null' in %s on line %d diff --git a/Zend/tests/use_function/conflicting_use_const_alias.phpt b/Zend/tests/use_function/conflicting_use_const_alias.phpt index b8472a5821..2e0faf0da2 100644 --- a/Zend/tests/use_function/conflicting_use_const_alias.phpt +++ b/Zend/tests/use_function/conflicting_use_const_alias.phpt @@ -1,5 +1,5 @@ --TEST-- -use and use function with the same alias +use const and use function with the same alias --FILE-- <?php |