Skip to content

Commit 340430d

Browse files
DanackGirgias
authored andcommitted
Add test for missing namespaced function.
Function which doesn't have a global fallback. Closes php#12
1 parent b3c0219 commit 340430d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Missing function in namespace
3+
--FILE--
4+
<?php
5+
6+
declare(strict_types=1);
7+
8+
namespace zoq {
9+
quux();
10+
}
11+
?>
12+
--EXPECTF--
13+
Fatal error: Uncaught Error: Call to undefined function zoq\quux() in %s
14+
Stack trace:
15+
#0 {main}
16+
thrown in %s on line %d

0 commit comments

Comments
 (0)