diff options
author | Igor Wiedler <igor@wiedler.ch> | 2013-08-25 14:03:07 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2013-08-25 14:03:07 +0200 |
commit | bc473228c83a6163350e0362ff3b0722f73b068c (patch) | |
tree | bcd7d8eddc718203bf1fb81ca89259a13df79dd6 | |
parent | 115c5ec7269c6dd7dfaeaa853a3a78a075d88e17 (diff) | |
download | php-git-bc473228c83a6163350e0362ff3b0722f73b068c.tar.gz |
Adjust some test names, remove obsolete and duplicate tests (nikic)
-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 |