mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-09 00:33:03 -04:00
test: add compatibility layer for phpunit
This commit is contained in:
parent
f4339e6b1a
commit
f2bbd2d5d7
2 changed files with 13 additions and 0 deletions
|
|
@ -4,6 +4,9 @@ use Icinga\Module\Director\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/Director/Test/Bootstrap.php';
|
||||
Bootstrap::cli($basedir);
|
||||
});
|
||||
|
|
|
|||
10
test/phpunit-compat.php
Normal file
10
test/phpunit-compat.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @codingStandardsIgnoreStart
|
||||
*/
|
||||
class PHPUnit_Framework_TestCase extends TestCase
|
||||
{
|
||||
}
|
||||
Loading…
Reference in a new issue