diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..39c9672 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: php +php: + - '7.0' + - '7.1' +install: + - composer install +script: + - ./vendor/bin/phpunit diff --git a/phpunit.xml b/phpunit.xml index e9ff621..984110a 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -4,4 +4,4 @@ tests/IntervalParserTests - \ No newline at end of file + diff --git a/tests/IntervalParserTests/data_provider/both_data_provider.php b/tests/IntervalParserTests/data_provider/both_data_provider.php index c747ddb..08fccc6 100644 --- a/tests/IntervalParserTests/data_provider/both_data_provider.php +++ b/tests/IntervalParserTests/data_provider/both_data_provider.php @@ -13,4 +13,4 @@ 'foo in 9d8h5m bar', new TimeInterval(new \DateInterval('P9DT8H5M'), 7, 24, 'foo', ' bar'), ] -]; \ No newline at end of file +]; diff --git a/tests/IntervalParserTests/data_provider/leading_data_provider.php b/tests/IntervalParserTests/data_provider/leading_data_provider.php index e056784..4dfaca3 100644 --- a/tests/IntervalParserTests/data_provider/leading_data_provider.php +++ b/tests/IntervalParserTests/data_provider/leading_data_provider.php @@ -13,4 +13,4 @@ 'foo in 9w8d7h6m5s', new TimeInterval(new \DateInterval('P71DT7H6M5S'), 7, 42, 'foo', null), ] -]; \ No newline at end of file +]; diff --git a/tests/IntervalParserTests/data_provider/trailing_data_provider.php b/tests/IntervalParserTests/data_provider/trailing_data_provider.php index 5c4de8a..1bbc3ee 100644 --- a/tests/IntervalParserTests/data_provider/trailing_data_provider.php +++ b/tests/IntervalParserTests/data_provider/trailing_data_provider.php @@ -17,4 +17,4 @@ '31d12h30m0s foo', new TimeInterval(new \DateInterval('P31DT12H30M'), 0, 37, null, ' foo'), ], -]; \ No newline at end of file +];