xref: /PHP-5.4/tests/classes/autoload_021.phpt (revision 2d31eadb)
1--TEST--
2Validation of class names in the autoload process
3--FILE--
4<?php
5function __autoload($name) {
6	echo "$name\n";
7}
8$a = "../BUG";
9$x = new $a;
10echo "BUG\n";
11?>
12--EXPECTF--
13Fatal error: Class '../BUG' not found in %sautoload_021.php on line 6
14