Skip to content

Commit

Permalink
Merge pull request #4 from Codeception/shim-generator-patch
Browse files Browse the repository at this point in the history
Reversed MockObject_Generator condition
  • Loading branch information
Naktibalda authored May 16, 2018
2 parents 95fb7a3 + 02a7c4e commit 36981f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shim.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 36981f5

Please sign in to comment.