[Bridge\PhpUnit] Fix composer installed phpunit detection
This commit is contained in:
parent
dc296cc951
commit
1b690c18aa
@ -4,7 +4,7 @@ use Doctrine\Common\Annotations\AnnotationRegistry;
|
|||||||
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
|
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
|
||||||
|
|
||||||
// Detect if we're loaded by an actual run of phpunit
|
// Detect if we're loaded by an actual run of phpunit
|
||||||
if (!class_exists('PHPUnit_TextUI_Command', false)) {
|
if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists('PHPUnit_TextUI_Command', false)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user