Skip to content

Commit 42457c9

Browse files
Do not show message that Xdebug is not loaded multipe times when multiple code coverage report formats are requested.
1 parent 21051ec commit 42457c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

PHPUnit/TextUI/Command.php

+11
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ class PHPUnit_TextUI_Command
116116
'version' => NULL
117117
);
118118

119+
/**
120+
* @var array
121+
*/
122+
protected $missingExtensions = array();
123+
119124
/**
120125
* @param boolean $exit
121126
*/
@@ -873,6 +878,10 @@ protected function handleBootstrap($filename)
873878
*/
874879
protected function showExtensionNotLoadedMessage($extension, $message = '')
875880
{
881+
if (isset($this->missingExtensions[$extension])) {
882+
return;
883+
}
884+
876885
if (!empty($message)) {
877886
$message = ' ' . $message;
878887
}
@@ -881,6 +890,8 @@ protected function showExtensionNotLoadedMessage($extension, $message = '')
881890
'The ' . $extension . ' extension is not loaded.' . $message . "\n",
882891
FALSE
883892
);
893+
894+
$this->missingExtensions[$extension] = TRUE;
884895
}
885896

886897
/**

0 commit comments

Comments
 (0)