Skip to content

Commit

Permalink
Fix incorrect class_exists('PHPUnit_Framework_Test')
Browse files Browse the repository at this point in the history
  • Loading branch information
garas committed Sep 26, 2018
1 parent b9862ed commit 91ebf06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit_aliases.php
Expand Up @@ -4,7 +4,7 @@
trigger_error(sprintf('Your PHPUnit Version must be at least 5.7.0 to use CakePHP Testsuite, found %s', \PHPUnit_Runner_Version::id()), E_USER_ERROR);
}

if (!class_exists('PHPUnit_Framework_Test') && class_exists('PHPUnit_Framework_TestCase')) {
if (!interface_exists('PHPUnit_Framework_Test') && class_exists('PHPUnit_Framework_TestCase')) {
class_alias('PHPUnit_Framework_Test', 'PHPUnit\Framework\Test');
class_alias('PHPUnit_Framework_AssertionFailedError', 'PHPUnit\Framework\AssertionFailedError');
class_alias('PHPUnit_Framework_TestSuite', 'PHPUnit\Framework\TestSuite');
Expand Down

0 comments on commit 91ebf06

Please sign in to comment.