Skip to content

Commit

Permalink
Add additional exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Mar 21, 2018
1 parent 43d7170 commit 368141a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Unit/ExceptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public function testGetRandomBucketWhenNoBucketsAreAdded()
(new BucketManager)->getRandomBucket();
}

public function testRedirectWhenNoBucketsAreAdded()
{
$this->expectException(Exception::class);
(new BucketManager)->redirect();
}

public function testCreatingWeightedBucketWithStringWeight()
{
$this->expectException(Exception::class);
Expand Down

0 comments on commit 368141a

Please sign in to comment.