mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Adjust some test names, remove obsolete and duplicate tests (nikic)
This commit is contained in:
parent
115c5ec726
commit
bc473228c8
4 changed files with 2 additions and 39 deletions
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
use and use function with the same alias
|
||||
use and use const with the same alias
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
|||
--TEST--
|
||||
use and use function with the same alias
|
||||
use const and use function with the same alias
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue