Fix duplicated code and a field name

This commit is contained in:
Arnaud Kleinpeter 2012-09-26 00:00:45 +02:00 committed by Fabien Potencier
parent 0671fb78a8
commit f1746795d5
2 changed files with 1 additions and 8 deletions

View File

@ -400,13 +400,6 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
->will($this->returnValue(32));
$tester = new ApplicationTester($application);
$application = $this->getMock('Symfony\Component\Console\Application', array('getTerminalWidth'));
$application->setAutoExit(false);
$application->expects($this->any())
->method('getTerminalWidth')
->will($this->returnValue(32));
$tester = new ApplicationTester($application);
$tester->run(array('command' => 'foo'), array('decorated' => false));
$this->assertStringEqualsFile(self::$fixturesPath.'/application_renderexception4.txt', $this->normalizeLineBreaks($tester->getDisplay()), '->renderException() wraps messages when they are bigger than the terminal');
}

View File

@ -17,7 +17,7 @@ use Symfony\Component\Console\Tester\CommandTester;
class CommandTesterTest extends \PHPUnit_Framework_TestCase
{
protected $application;
protected $command;
protected $tester;
protected function setUp()