We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a454c1 commit 7c4af23Copy full SHA for 7c4af23
phpunit.xml
@@ -6,7 +6,8 @@
6
convertWarningsToExceptions="true"
7
processIsolation="false"
8
stopOnFailure="false"
9
- syntaxCheck="false">
+ syntaxCheck="false"
10
+ bootstrap="./tests/bootstrap.php">
11
<php>
12
<!--Path to the autoload file that should be used. Use a composer autoloader by default-->
13
<const name="AUTOLOAD_PATH" value="./vendor/autoload.php"/>
tests/bootstrap.php
@@ -0,0 +1,10 @@
1
+<?php
2
+ini_set('display_errors', 1);
3
+
4
+if (defined("AUTOLOAD_PATH")) {
5
+ if (is_file(__DIR__ . '/../' .AUTOLOAD_PATH)) {
+ $loader = include_once __DIR__ . '/../' . AUTOLOAD_PATH;
+ } else {
+ throw new InvalidArgumentException("Cannot load custom autoload file located at ".AUTOLOAD_PATH);
+ }
+}
0 commit comments