summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_010.phpt
blob: 8b00c9c83544c3731443cc762f6aa8b5f884df77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Ensure implements does trigger autoload.
--FILE--
<?php
spl_autoload_register(function ($name) {
  echo "In autoload: ";
  var_dump($name);
});

class C implements UndefI
{
}
?>
--EXPECTF--
In autoload: string(6) "UndefI"

Fatal error: Uncaught Error: Interface "UndefI" not found in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d