Skip to content

Commit

Permalink
Merge branch '3.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 24, 2012
2 parents 502b8da + 42457c9 commit 7d51e4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PHPUnit/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ class PHPUnit_TextUI_Command
'version' => NULL
);

/**
* @var array
*/
protected $missingExtensions = array();

/**
* @param boolean $exit
*/
Expand Down Expand Up @@ -774,6 +779,10 @@ protected function handleBootstrap($filename)
*/
protected function showExtensionNotLoadedMessage($extension, $message = '')
{
if (isset($this->missingExtensions[$extension])) {
return;
}

if (!empty($message)) {
$message = ' ' . $message;
}
Expand All @@ -782,6 +791,8 @@ protected function showExtensionNotLoadedMessage($extension, $message = '')
'The ' . $extension . ' extension is not loaded.' . $message . "\n",
FALSE
);

$this->missingExtensions[$extension] = TRUE;
}

/**
Expand Down

0 comments on commit 7d51e4f

Please sign in to comment.