mirror of
https://github.com/composer/composer
synced 2025-05-09 08:32:56 +00:00
Add verbosity input support to IOInterface
This commit is contained in:
parent
a9cb931896
commit
49d7d65933
31 changed files with 186 additions and 224 deletions
|
@ -14,6 +14,7 @@ namespace Composer\Test;
|
|||
|
||||
use Composer\Console\Application;
|
||||
use Composer\TestCase;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
class ApplicationTest extends TestCase
|
||||
{
|
||||
|
@ -30,11 +31,19 @@ class ApplicationTest extends TestCase
|
|||
|
||||
$index = 0;
|
||||
if (extension_loaded('xdebug')) {
|
||||
$outputMock->expects($this->at($index++))
|
||||
->method("getVerbosity")
|
||||
->willReturn(OutputInterface::VERBOSITY_NORMAL);
|
||||
|
||||
$outputMock->expects($this->at($index++))
|
||||
->method("write")
|
||||
->with($this->equalTo('<warning>You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug</warning>'));
|
||||
}
|
||||
|
||||
$outputMock->expects($this->at($index++))
|
||||
->method("getVerbosity")
|
||||
->willReturn(OutputInterface::VERBOSITY_NORMAL);
|
||||
|
||||
$outputMock->expects($this->at($index++))
|
||||
->method("write")
|
||||
->with($this->equalTo(sprintf('<warning>Warning: This development build of composer is over 60 days old. It is recommended to update it by running "%s self-update" to get the latest version.</warning>', $_SERVER['PHP_SELF'])));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue