We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a3864 commit a40409cCopy full SHA for a40409c
phpunit.xml.dist
@@ -9,7 +9,7 @@
9
processIsolation="true"
10
stopOnFailure="false"
11
syntaxCheck="false"
12
- bootstrap="vendor/autoload.php"
+ bootstrap="tests/bootstrap.php"
13
>
14
<testsuites>
15
<testsuite name="Yii2 Config Test Suite">
tests/bootstrap.php
@@ -1 +1,10 @@
1
<?php
2
+require __DIR__ . '/../vendor/autoload.php';
3
+
4
+// Some travis environments use phpunit > 6
5
+$newClass = '\PHPUnit\Framework\TestCase';
6
+$oldClass = '\PHPUnit_Framework_TestCase';
7
+if (!class_exists($newClass) && class_exists($oldClass)) {
8
+ class_alias($oldClass, $newClass);
+}
0 commit comments