From 1b690c18aad5adb1ef2820f4f90b2817b5c2c3b3 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 3 Jun 2015 14:50:52 -0700 Subject: [PATCH] [Bridge\PhpUnit] Fix composer installed phpunit detection --- src/Symfony/Bridge/PhpUnit/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/PhpUnit/bootstrap.php b/src/Symfony/Bridge/PhpUnit/bootstrap.php index b25891538d..91504ae4a8 100644 --- a/src/Symfony/Bridge/PhpUnit/bootstrap.php +++ b/src/Symfony/Bridge/PhpUnit/bootstrap.php @@ -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; }