From 30df47755acedf7faff1f9695bd2d9c14b186550 Mon Sep 17 00:00:00 2001 From: imanilchaudhari Date: Sat, 6 Apr 2024 10:46:55 +0000 Subject: [PATCH] Apply Rector changes (CI) --- tests/compatibility.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/compatibility.php b/tests/compatibility.php index ede5cce..ae4757c 100644 --- a/tests/compatibility.php +++ b/tests/compatibility.php @@ -11,7 +11,7 @@ namespace PHPUnit\Framework\Constraint { - if (!class_exists('PHPUnit\Framework\Constraint\Constraint') && class_exists('PHPUnit_Framework_Constraint')) { + if (!class_exists(\PHPUnit\Framework\Constraint\Constraint::class) && class_exists('PHPUnit_Framework_Constraint')) { abstract class Constraint extends \PHPUnit_Framework_Constraint { } @@ -20,7 +20,7 @@ abstract class Constraint extends \PHPUnit_Framework_Constraint namespace PHPUnit\Framework { - if (!class_exists('PHPUnit\Framework\TestCase') && class_exists('PHPUnit_Framework_TestCase')) { + if (!class_exists(\PHPUnit\Framework\TestCase::class) && class_exists('PHPUnit_Framework_TestCase')) { echo "Applying compatibility patch for PHPUnit 6...\n";