From d7c64182acc38e1bd5a0435ab1b44f56c99a433f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20P=C3=A9delagrabe?= Date: Thu, 26 Mar 2020 15:42:14 +0100 Subject: [PATCH] Remove try/catch in test. --- .../Component/Console/Tests/Output/StreamOutputTest.php | 5 ----- 1 file changed, 5 deletions(-) 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())); }