Skip to content

Commit

Permalink
Add test to CantonManagerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed May 9, 2018
1 parent 102f16b commit f27dd9a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/CantonManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,14 @@ public function it_throws_exception_if_no_canton_for_zipcode_could_be_found()
$canton = new CantonManager();
$result = $canton->getByZipcode(8000);
}

/**
* @test
* @expectedException Exception
*/
public function it_throws_exception_if_lichtenstein_zipcode_is_searched_for()
{
$canton = new CantonManager();
$result = $canton->getByZipcode(9494);
}
}

0 comments on commit f27dd9a

Please sign in to comment.