Skip to content

Commit 303e966

Browse files
authored
Merge pull request #11 from Danack/autoloader_add_test
Add failing test for function found on fall back to root.
2 parents 065e70a + abf0e12 commit 303e966

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Check functions found on fallback to root.
3+
--FILE--
4+
<?php
5+
namespace {
6+
function foo()
7+
{
8+
echo "I am just foo.\n";
9+
}
10+
}
11+
12+
namespace bar {
13+
foo();
14+
}
15+
?>
16+
--EXPECT--
17+
I am just foo.

0 commit comments

Comments
 (0)