Completed
Push — master ( 707688...6da863 )
by Mike
04:47 queued 02:08
created

tests/TestInit.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
// Tests/bootstrap.php
3
$loader = @include __DIR__ . '/../vendor/autoload.php';
4
if (!$loader) {
5
    die(<<<'EOT'
6
You must set up the project dependencies, run the following commands:
7
wget http://getcomposer.org/composer.phar
8
php composer.phar install
9
EOT
10
    );
11
}
12
13
use Doctrine\Common\ClassLoader;
14
15
$classLoader = new ClassLoader('Doctrine\Tests', __DIR__ . '/../tests');
0 ignored issues
show
Deprecated Code introduced by
The class Doctrine\Common\ClassLoader has been deprecated with message: the ClassLoader is deprecated and will be removed in version 3.0 of doctrine/common.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
16
$classLoader->register();
17
18
Doctrine\Common\Annotations\AnnotationRegistry::registerAutoloadNamespace(
19
    'Doctrine\ODM\CouchDB\Mapping\Annotations', __DIR__ . '/../lib'
20
);
21
22
23