Skip to content

Commit

Permalink
Improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Jan 11, 2021
1 parent 03fb7a0 commit a2c4566
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/FriendlySolutionsRepositoryTest.php
Expand Up @@ -19,4 +19,13 @@ public function testGetFromThrowable(): void
$this->assertNotEmpty($solutions);
$this->assertEquals('Test solution', array_shift($solutions)->getSolutionDescription());
}

public function testGetFromThrowableWithNonFriendlyException(): void
{
$repository = new FriendlySolutionsRepository();

$solutions = $repository->getFromThrowable(new \RuntimeException());

$this->assertEmpty($solutions);
}
}

0 comments on commit a2c4566

Please sign in to comment.