Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 608 Bytes
Test PEAR2\Autoload initalization w/2nd path, loading class & writing map.
require __DIR__ . '/../src/PEAR2/Autoload.php';
PEAR2\Autoload::initialize(__DIR__.'/_files', __DIR__.'/_files/');
echo testDir1\Foo::sayHello();
$map = include __DIR__.'/_files/';
if (isset($map['testDir1\\Foo'])) {
echo "class mapped\n";
} else {
echo "class not mapped\n";
class testDir1\Foo says hi
class mapped
// comment this out if you want to review the generated file map!
Something went wrong with that request. Please try again.