Browse Source

Compatibility with PHPUnit 6.x fix

tags/2.0.7
Klimov Paul 8 years ago
parent
commit
23b69e5c25
  1. 4
      tests/compatibility.php

4
tests/compatibility.php

@ -3,14 +3,14 @@
* Ensures compatibility with PHPUnit < 6.x
*/
if (!class_exists('PHPUnit\Framework\Constraint\Constraint') && class_exists('PHPUnit_Framework_Constraint')) {
namespace PHPUnit\Framework\Constraint {
if (!class_exists('PHPUnit\Framework\Constraint\Constraint') && class_exists('PHPUnit_Framework_Constraint')) {
abstract class Constraint extends \PHPUnit_Framework_Constraint {}
}
}
if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) {
namespace PHPUnit\Framework {
if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) {
abstract class TestCase extends \PHPUnit_Framework_TestCase {}
}
}

Loading…
Cancel
Save