mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
test: add compatibility layer for phpunit
This commit is contained in:
parent
7452a39f82
commit
a2ba17999b
2 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
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