Skip to content

Commit 3e9da2b

Browse files
Jensmoufmouf
authored andcommitted
Using bootstrap to register annotations
1 parent 81f66ef commit 3e9da2b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
12-
bootstrap="vendor/autoload.php"
11+
bootstrap="tests/Bootstrap.php"
1312
>
1413
<testsuites>
1514
<testsuite name="GraphQLite Test Suite">
1615
<directory>./tests/</directory>
1716
<exclude>./tests/dependencies/</exclude>
17+
<exclude>./tests/Bootstrap.php</exclude>
1818
</testsuite>
1919
</testsuites>
2020

tests/Bootstrap.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
use Doctrine\Common\Annotations\AnnotationRegistry;
4+
5+
$autoloader = require_once __DIR__ . '/../vendor/autoload.php';
6+
7+
AnnotationRegistry::registerLoader('class_exists');
8+
9+
return $autoloader;

0 commit comments

Comments
 (0)