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