Skip to content

Commit

Permalink
fixing php 7.0 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lsv committed Apr 5, 2017
1 parent e19afd7 commit d8f6b82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ language: php
php:
- 7.0
- 7.1
- hhvm

matrix:
fast_finish: true
Expand Down
6 changes: 3 additions & 3 deletions tests/TimestringParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function dataProviderFunnyLetters()
* @param array $hourLetters
* @param array $minLetters
*/
public function test_funny_letters(string $string, int $expected, array $hourLetters, array $minLetters) : void
public function test_funny_letters(string $string, int $expected, array $hourLetters, array $minLetters)
{
$this->assertEquals($expected, (new TimestringParser($hourLetters, $minLetters))->parseTimeString($string));
}
Expand All @@ -75,7 +75,7 @@ public function dataProviderReadme() : array
* @param string $string
* @param int $expected
*/
public function test_readme_examples(string $string, int $expected) : void
public function test_readme_examples(string $string, int $expected)
{
$parser = new TimestringParser(['h','t','u'], ['m','x','y']);
$this->assertEquals($expected, $parser->parseTimeString($string));
Expand All @@ -98,7 +98,7 @@ public function dataProviderLowMinutes() : array
* @param int $expected
* @param int $lowinutes
*/
public function test_low_minutes(int $number, int $expected, int $lowinutes) : void
public function test_low_minutes(int $number, int $expected, int $lowinutes)
{
$parser = new TimestringParser(['h'], ['m'], $lowinutes);
$this->assertEquals($expected, $parser->parseTimeString($number));
Expand Down

0 comments on commit d8f6b82

Please sign in to comment.