Skip to content

Commit

Permalink
Removed redundant try/catch.
Browse files Browse the repository at this point in the history
Leaving this to phpunit to catch.
  • Loading branch information
JeffAlyanak committed Dec 12, 2019
1 parent 1a10dd2 commit 31a8eeb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Tests/GravityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@ public function testGravity($gravity): void
{
$gravity = new Gravity($gravity);

try {
$validatedGravity = $gravity->validate();
} catch (\Exception $e) {
static::fail($e->getMessage());

return;
}
$validatedGravity = $gravity->validate();

static::assertIsString($validatedGravity);
static::assertNotEmpty($validatedGravity);
Expand Down

0 comments on commit 31a8eeb

Please sign in to comment.