Adjust some test names, remove obsolete and duplicate tests (nikic)

This commit is contained in:
Igor Wiedler 2013-08-25 14:03:07 +02:00
parent 115c5ec726
commit bc473228c8
4 changed files with 2 additions and 39 deletions

View file

@ -1,5 +1,5 @@
--TEST--
use and use function with the same alias
use and use const with the same alias
--FILE--
<?php

View file

@ -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

View file

@ -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

View file

@ -1,5 +1,5 @@
--TEST--
use and use function with the same alias
use const and use function with the same alias
--FILE--
<?php