Skip to content

Commit d8f6b82

Browse files
committed
fixing php 7.0 tests
1 parent e19afd7 commit d8f6b82

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ language: php
44
php:
55
- 7.0
66
- 7.1
7-
- hhvm
87

98
matrix:
109
fast_finish: true

tests/TimestringParserTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function dataProviderFunnyLetters()
5151
* @param array $hourLetters
5252
* @param array $minLetters
5353
*/
54-
public function test_funny_letters(string $string, int $expected, array $hourLetters, array $minLetters) : void
54+
public function test_funny_letters(string $string, int $expected, array $hourLetters, array $minLetters)
5555
{
5656
$this->assertEquals($expected, (new TimestringParser($hourLetters, $minLetters))->parseTimeString($string));
5757
}
@@ -75,7 +75,7 @@ public function dataProviderReadme() : array
7575
* @param string $string
7676
* @param int $expected
7777
*/
78-
public function test_readme_examples(string $string, int $expected) : void
78+
public function test_readme_examples(string $string, int $expected)
7979
{
8080
$parser = new TimestringParser(['h','t','u'], ['m','x','y']);
8181
$this->assertEquals($expected, $parser->parseTimeString($string));
@@ -98,7 +98,7 @@ public function dataProviderLowMinutes() : array
9898
* @param int $expected
9999
* @param int $lowinutes
100100
*/
101-
public function test_low_minutes(int $number, int $expected, int $lowinutes) : void
101+
public function test_low_minutes(int $number, int $expected, int $lowinutes)
102102
{
103103
$parser = new TimestringParser(['h'], ['m'], $lowinutes);
104104
$this->assertEquals($expected, $parser->parseTimeString($number));

0 commit comments

Comments
 (0)