Permalink
Browse files

Fix duplicated code and a field name

  • Loading branch information...
1 parent 57d03f8 commit 1fbfb98e6b976189947df1b519b029e0d967d3f5 @nanocom nanocom committed with fabpot Sep 25, 2012
Showing with 1 addition and 8 deletions.
  1. +0 −7 Tests/ApplicationTest.php
  2. +1 −1 Tests/Tester/CommandTesterTest.php
@@ -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');
}
@@ -17,7 +17,7 @@
class CommandTesterTest extends \PHPUnit_Framework_TestCase
{
- protected $application;
+ protected $command;
protected $tester;
protected function setUp()

0 comments on commit 1fbfb98

Please sign in to comment.