xref: /PHP-5.3/tests/classes/autoload_012.phpt (revision 9411b268)
1--TEST--
2Ensure callback methods in unknown classes trigger autoload.
3--FILE--
4<?php
5  function __autoload($name)
6  {
7      echo "In autoload: ";
8      var_dump($name);
9  }
10  call_user_func("UndefC::test");
11?>
12--EXPECTF--
13In autoload: string(6) "UndefC"
14
15Warning: call_user_func() expects parameter 1 to be a valid callback, class 'UndefC' not found in %s on line %d
16