xref: /PHP-7.3/Zend/tests/ns_011.phpt (revision b746e698)
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--EXPECT--
20test\ns1\foo
21test\ns1\foo
22test\ns1\bar
23test\ns1\bar
24