xref: /PHP-5.6/Zend/tests/ns_011.phpt (revision 610c7fbe)
1--TEST--
2011: Function in namespace
3--FILE--
4<?php
5namespace test\ns1;
6
7function foo() {
8  echo __FUNCTION__,"\n";
9}
10
11foo();
12\test\ns1\foo();
13bar();
14\test\ns1\bar();
15
16function bar() {
17  echo __FUNCTION__,"\n";
18}
19
20--EXPECT--
21test\ns1\foo
22test\ns1\foo
23test\ns1\bar
24test\ns1\bar
25