Klimov Paul
8 years ago
2 changed files with 10 additions and 6 deletions
@ -1,12 +1,16 @@ |
|||||||
<?php |
<?php |
||||||
/* |
/* |
||||||
* Ensures compatibility with PHPUnit 6.x |
* Ensures compatibility with PHPUnit < 6.x |
||||||
*/ |
*/ |
||||||
|
|
||||||
if (!class_exists('PHPUnit_Framework_Constraint') && class_exists('PHPUnit\Framework\Constraint\Constraint')) { |
if (!class_exists('PHPUnit\Framework\Constraint\Constraint') && class_exists('PHPUnit_Framework_Constraint')) { |
||||||
abstract class PHPUnit_Framework_Constraint extends \PHPUnit\Framework\Constraint\Constraint {} |
namespace PHPUnit\Framework\Constraint { |
||||||
|
abstract class Constraint extends \PHPUnit_Framework_Constraint {} |
||||||
|
} |
||||||
} |
} |
||||||
|
|
||||||
if (!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) { |
if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) { |
||||||
abstract class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {} |
namespace PHPUnit\Framework { |
||||||
|
abstract class TestCase extends \PHPUnit_Framework_TestCase {} |
||||||
|
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue