xref: /PHP-8.2/ext/spl/tests/bug79432.phpt (revision 6ba24e96)
1--TEST--
2Bug #79432 (spl_autoload_call() with non-string argument violates assertion)
3--FILE--
4<?php
5
6try {
7    spl_autoload_call([]);
8} catch (TypeError $e) {
9    echo $e->getMessage(), "\n";
10}
11
12?>
13--EXPECT--
14spl_autoload_call(): Argument #1 ($class) must be of type string, array given
15