diff --git a/test/bootstrap.php b/test/bootstrap.php index 40c16cf..79dcd68 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -4,6 +4,9 @@ use Icinga\Module\Businessprocess\Test\Bootstrap; call_user_func(function () { $basedir = dirname(__DIR__); + if (! class_exists('PHPUnit_Framework_TestCase')) { + require_once __DIR__ . '/phpunit-compat.php'; + } require_once $basedir . '/library/Businessprocess/Test/Bootstrap.php'; Bootstrap::cli($basedir); }); diff --git a/test/phpunit-compat.php b/test/phpunit-compat.php new file mode 100644 index 0000000..2b1be3a --- /dev/null +++ b/test/phpunit-compat.php @@ -0,0 +1,10 @@ +