diff --git a/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php b/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php index b85007dea69b9..55547bda4840e 100644 --- a/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php +++ b/src/Symfony/Component/Console/Tests/Output/StreamOutputTest.php @@ -62,11 +62,6 @@ public function testDoWriteOnFailure() { $resource = fopen(__DIR__.'/../Fixtures/stream_output_file.txt', 'r', false); $output = new StreamOutput($resource); - try { - $output->writeln('foo'); - } catch (\RuntimeException $exception) { - throw new AssertionFailedError('Should not fail.'); - } rewind($output->getStream()); $this->assertEquals('', stream_get_contents($output->getStream())); }