From 02a7c4e53f641ef13d87584312f46c721345604b Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Thu, 12 Apr 2018 11:13:06 +0100 Subject: [PATCH] Reversed MockObject_Generator condition to get it working with my ZF1 codebase --- src/shim.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shim.php b/src/shim.php index 620fe55..54ba2cb 100644 --- a/src/shim.php +++ b/src/shim.php @@ -6,7 +6,7 @@ class_alias('PHPUnit_Framework_TestCase', 'PHPUnit'.'\Framework\TestCase'); if (!class_exists('PHPUnit\Runner\Version')) { class_alias('PHPUnit_Runner_Version', 'PHPUnit\Runner\Version'); } -if (!class_exists('PHPUnit\Framework\MockObject\Generator')) { +if (class_exists('PHPUnit_Framework_MockObject_Generator')) { class_alias('PHPUnit_Framework_MockObject_Generator', 'PHPUnit\Framework\MockObject\Generator'); class_alias('PHPUnit_Framework_MockObject_InvocationMocker', 'PHPUnit\Framework\MockObject\InvocationMocker'); class_alias('PHPUnit_Framework_MockObject_Invokable', 'PHPUnit\Framework\MockObject\Invokable');