Skip to content

Commit 67ded2b

Browse files
committed
set up the annotation loader for unit testing
1 parent bdc91f1 commit 67ded2b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Tests/bootstrap.php

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

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
processIsolation = "false"
1212
stopOnFailure = "false"
1313
syntaxCheck = "false"
14-
bootstrap = "vendor/autoload.php" >
14+
bootstrap = "Tests/bootstrap.php" >
1515

1616
<testsuites>
1717
<testsuite name="Project Test Suite">

0 commit comments

Comments
 (0)