xref: /PHP-7.3/tests/classes/autoload_010.phpt (revision 7af945e2)
1--TEST--
2Ensure implements does trigger autoload.
3--FILE--
4<?php
5spl_autoload_register(function ($name) {
6  echo "In autoload: ";
7  var_dump($name);
8});
9
10class C implements UndefI
11{
12}
13?>
14--EXPECTF--
15In autoload: string(6) "UndefI"
16
17Fatal error: Interface 'UndefI' not found in %s on line %d
18