Skip to content

Commit

Permalink
return back a hack with phpunit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Afanasiev committed Mar 22, 2018
1 parent eac4a01 commit f3bf698
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Test/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<?php

include __DIR__ . "/../vendor/autoload.php";

// backward compatibility (https://stackoverflow.com/a/42828632/187780)
if (!class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit_Framework_TestCase')) {
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}

0 comments on commit f3bf698

Please sign in to comment.