[Bridge\PhpUnit] Fix composer installed phpunit detection

This commit is contained in:
Nicolas Grekas 2015-06-03 14:50:52 -07:00
parent dc296cc951
commit 1b690c18aa
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ use Doctrine\Common\Annotations\AnnotationRegistry;
use Symfony\Bridge\PhpUnit\DeprecationErrorHandler;
// 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;
}