Skip to content

Commit

Permalink
Enhanced PHPUnit 6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Mar 22, 2017
1 parent cf4eea1 commit 9d6c4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

if (!class_exists('PHPUnit_Framework_Constraint') && class_exists('PHPUnit\Framework\Constraint\Constraint')) {
class PHPUnit_Framework_Constraint extends \PHPUnit\Framework\Constraint\Constraint {}
abstract class PHPUnit_Framework_Constraint extends \PHPUnit\Framework\Constraint\Constraint {}
}

if (!class_exists('PHPUnit_Framework_TestCase') && class_exists('PHPUnit\Framework\TestCase')) {
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
abstract class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
}

0 comments on commit 9d6c4bd

Please sign in to comment.