3 * This file bootstraps the test environment.
5 namespace Doctrine\Tests;
7 error_reporting(E_ALL | E_STRICT);
9 // register silently failing autoloader
10 spl_autoload_register(function($class)
12 if (0 === strpos($class, 'Doctrine\Tests\\')) {
13 $path = __DIR__.'/../../'.strtr($class, '\\', '/').'.php';
14 if (file_exists($path) && is_readable($path)) {
19 } else if (0 === strpos($class, 'Doctrine\Common\\')) {
20 $path = __DIR__.'/../../../lib/'.($class = strtr($class, '\\', '/')).'.php';
21 if (file_exists($path) && is_readable($path)) {
29 \Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
30 'Doctrine\Tests\Common\Annotations\Fixtures', __DIR__ . '/../../'