Skip to content

Commit

Permalink
Remove try/catch in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Pédelagrabe committed Mar 26, 2020
1 parent eff4a6e commit d7c6418
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -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()));
}
Expand Down

0 comments on commit d7c6418

Please sign in to comment.