Skip to content

Commit 4f06eb3

Browse files
committed
Adjust test expectation now that unqualified calls perform an autoloading call
1 parent 21de398 commit 4f06eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/tests/autoloading/function/exceptions_during_autoloading004.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ namespace bar {
2929
try {
3030
foo();
3131
} catch (\Throwable $e) {
32-
/* No autoloading for unqualified function names */
3332
do {
3433
echo $e::class, ': ', $e->getMessage(), "\n";
3534
} while ($e = $e->getPrevious());
@@ -52,7 +51,8 @@ Try-catch around function_exists()
5251
autoload_first
5352
first
5453
Try-catch around unqualified function call
55-
Error: Call to undefined function bar\foo()
54+
autoload_first
55+
Exception: first
5656
Try-catch around qualified function call
5757
autoload_first
5858
Exception: first

0 commit comments

Comments
 (0)