php-src/Zend/tests/ns_021.phpt
Dmitry Stogov f32ffe9b43 Namespaces
2007-09-28 19:52:53 +00:00

24 lines
311 B
PHP
Executable File

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