From 23b69e5c257c30bfcb1f88157c135a979f22d8eb Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Wed, 12 Apr 2017 18:12:45 +0300 Subject: [PATCH] Compatibility with PHPUnit 6.x fix --- tests/compatibility.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/compatibility.php b/tests/compatibility.php index 152645a..ee617ab 100644 --- a/tests/compatibility.php +++ b/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 { +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 { +namespace PHPUnit\Framework { + if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) { abstract class TestCase extends \PHPUnit_Framework_TestCase {} } }