Skip to content

Commit

Permalink
tests, too
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvi committed Aug 18, 2016
1 parent c7466c1 commit 9a8b69a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ParserSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ public function testBetweenValidatorWithValidValues()

public function testIntBetweenValidatorWithValuesOutOfRange()
{
$this->setExpectedException(InvalidValueException::class, 'Invalid value for parameter "groupId". Expected an integer value between 1 and 6, but got "7"');
$this->setExpectedException(InvalidValueException::class, 'Invalid value for parameter "groupId". Expected an integer between 1 and 6, but got "7"');
$parser = new IntParser(new Config(), 'groupId', 7);
$groupId = $parser->between(1, 6)->required();
}

public function testFloatBetweenValidatorWithValuesOutOfRange()
{
$this->setExpectedException(InvalidValueException::class, 'Invalid value for parameter "precipitation". Expected a float value between 60.99 and 101.12, but got "101.13"');
$this->setExpectedException(InvalidValueException::class, 'Invalid value for parameter "precipitation". Expected a float between 60.99 and 101.12, but got "101.13"');
$parser = new FloatParser(new Config(), 'precipitation', 101.13);
$precipitation = $parser->between(60.99, 101.12)->required();
}
Expand Down

0 comments on commit 9a8b69a

Please sign in to comment.