test: add compatibility layer for phpunit
This commit is contained in:
parent
f4339e6b1a
commit
f2bbd2d5d7
|
@ -4,6 +4,9 @@ use Icinga\Module\Director\Test\Bootstrap;
|
||||||
|
|
||||||
call_user_func(function () {
|
call_user_func(function () {
|
||||||
$basedir = dirname(__DIR__);
|
$basedir = dirname(__DIR__);
|
||||||
|
if (! class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
|
require_once __DIR__ . '/phpunit-compat.php';
|
||||||
|
}
|
||||||
require_once $basedir . '/library/Director/Test/Bootstrap.php';
|
require_once $basedir . '/library/Director/Test/Bootstrap.php';
|
||||||
Bootstrap::cli($basedir);
|
Bootstrap::cli($basedir);
|
||||||
});
|
});
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use PHPUnit\Framework\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @codingStandardsIgnoreStart
|
||||||
|
*/
|
||||||
|
class PHPUnit_Framework_TestCase extends TestCase
|
||||||
|
{
|
||||||
|
}
|
Loading…
Reference in New Issue