diff --git a/.travis.yml b/.travis.yml index 412d2c4..c48ee2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,22 @@ language: php php: - - 5.3 - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 + - 7.2 + - 7.3 matrix: include: - php: hhvm dist: trusty + - php: 5.3 + dist: precise + allow_failures: + - php: hhvm before_script: - composer install --dev --prefer-dist --no-interaction diff --git a/composer.json b/composer.json index cc0d10b..53cbc67 100644 --- a/composer.json +++ b/composer.json @@ -13,9 +13,16 @@ "php": "^5.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.5 || ^5.7" + "phpunit/phpunit": "^4.8 || ^5.7" }, "autoload": { - "psr-0": { "JsonpCallbackValidator": "src/" } + "psr-0": { + "JsonpCallbackValidator": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "JsonpCallbackValidator\\Tests\\": "tests/" + } } } diff --git a/tests/JsonpCallbackValidatorTest.php b/tests/JsonpCallbackValidatorTest.php index 27322cc..88746eb 100644 --- a/tests/JsonpCallbackValidatorTest.php +++ b/tests/JsonpCallbackValidatorTest.php @@ -1,6 +1,11 @@ assertEquals($expected, $validator->validate($callback)); } @@ -72,6 +77,6 @@ public static function dataProviderForTestValidate() public function testCallStatically() { - $this->assertTrue(\JsonpCallbackValidator::validate('foo')); + $this->assertTrue(JsonpCallbackValidator::validate('foo')); } }