Skip to content

Commit

Permalink
Fix duplicated code and a field name
Browse files Browse the repository at this point in the history
  • Loading branch information
nanocom authored and fabpot committed Sep 28, 2012
1 parent 57d03f8 commit 1fbfb98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions Tests/ApplicationTest.php
Expand Up @@ -400,13 +400,6 @@ public function testRenderException()
->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');
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tester/CommandTesterTest.php
Expand Up @@ -17,7 +17,7 @@

class CommandTesterTest extends \PHPUnit_Framework_TestCase
{
protected $application;
protected $command;
protected $tester;

protected function setUp()
Expand Down

0 comments on commit 1fbfb98

Please sign in to comment.