Skip to content

Commit

Permalink
Merge pull request #42 from phwoolcon/master
Browse files Browse the repository at this point in the history
test: fix phpunit 6 compatibility issue
  • Loading branch information
andot committed May 22, 2017
2 parents f1ef333 + 7cc477e commit 7b1df78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tests/Bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
<?php
$loader = include __DIR__ . '/../vendor/autoload.php';

$psr4TestCaseClass = 'PHPUnit\Framework\TestCase';
$psr0TestCaseClass = 'PHPUnit_Framework_TestCase';

if (!class_exists($psr0TestCaseClass) && class_exists($psr4TestCaseClass)) {
class_alias($psr4TestCaseClass, $psr0TestCaseClass);
}
2 changes: 1 addition & 1 deletion tests/phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</testsuites>
<filter>
<whitelist>
<directory>..</directory>
<directory>../src</directory>
<exclude>
<directory>../vendor/</directory>
</exclude>
Expand Down

0 comments on commit 7b1df78

Please sign in to comment.