From d8f6b823a946d35a90c387737d6ba3db8ff4dfc0 Mon Sep 17 00:00:00 2001 From: Martin Aarhof Date: Wed, 5 Apr 2017 15:43:35 +0200 Subject: [PATCH] fixing php 7.0 tests --- .travis.yml | 1 - tests/TimestringParserTest.php | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68b35c0..dc8c4f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ language: php php: - 7.0 - 7.1 - - hhvm matrix: fast_finish: true diff --git a/tests/TimestringParserTest.php b/tests/TimestringParserTest.php index b0e4b05..25f8e39 100644 --- a/tests/TimestringParserTest.php +++ b/tests/TimestringParserTest.php @@ -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)); } @@ -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)); @@ -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));