Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasgrimm committed Feb 14, 2016
1 parent d3dcdbf commit a17900d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/EnvValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function it_has_the_right_error_message()
} catch (MathiasGrimm\LaravelEnvValidator\Exception $e) {
$this->assertContains("The VAR_1 variable is not defined or invalid", $e->getMessage());
$this->assertContains("The VAR_2 variable is not defined or invalid", $e->getMessage());
} catch (Exception $e) {
$this->fail("It should not get here!");
}
}

Expand All @@ -49,7 +51,7 @@ public function it_does_not_throw_exception_if_validation_is_met()
]);
$envValidator->validate();
$this->assertTrue(true);
} catch (\Exception $e) {
} catch (Exception $e) {
$this->fail("It should not get here!");
}
}
Expand All @@ -63,5 +65,4 @@ public function it_doest_not_throw_exception_if_no_configuration_is_defined()
$envValidator->validate();
$this->assertTrue(true);
}

}

0 comments on commit a17900d

Please sign in to comment.