1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/Zend/tests/ns_021.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

25 lines
326 B
PHP

--TEST--
021: Name search priority (first look into namespace)
--FILE--
<?php
namespace test;
class Test {
static function foo() {
echo __CLASS__,"::",__FUNCTION__,"\n";
}
}
function foo() {
echo __FUNCTION__,"\n";
}
foo();
\test\foo();
\test\test::foo();
?>
--EXPECT--
test\foo
test\foo
test\Test::foo