diff --git a/Tests/ApplicationTest.php b/Tests/ApplicationTest.php index 3652d9e1f..562573e42 100644 --- a/Tests/ApplicationTest.php +++ b/Tests/ApplicationTest.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'); } diff --git a/Tests/Tester/CommandTesterTest.php b/Tests/Tester/CommandTesterTest.php index e64d96748..da5bf84e2 100644 --- a/Tests/Tester/CommandTesterTest.php +++ b/Tests/Tester/CommandTesterTest.php @@ -17,7 +17,7 @@ class CommandTesterTest extends \PHPUnit_Framework_TestCase { - protected $application; + protected $command; protected $tester; protected function setUp()