From 9e92f50134e8decb57c4530725b5d08b61002242 Mon Sep 17 00:00:00 2001 From: Edo Freriks Date: Thu, 17 Sep 2020 01:46:26 +0200 Subject: [PATCH] Add Laravel 8 support (#153) * Add Laravel 8 support * Revert back to assertFileNotExists, will be deprecated in PHPUnit 10 * Update .travis orchestra/testbench --- .travis.yml | 9 +++++++++ README.md | 2 +- composer.json | 8 ++++---- tests/specs/LangJsServiceProviderTest.php | 1 + 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index f5f9ca3..ab03666 100644 --- a/.travis.yml +++ b/.travis.yml @@ -190,6 +190,15 @@ matrix: env: LARAVEL='7.*' TESTBENCH='5.*' PHPUNIT='>=6' COMPOSER_FLAGS='--prefer-lowest' - php: 7.4 env: LARAVEL='7.*' TESTBENCH='5.*' PHPUNIT='>=6' COMPOSER_FLAGS='--prefer-stable' + + - php: 7.3 + env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-lowest' + - php: 7.3 + env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-stable' + - php: 7.4 + env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-lowest' + - php: 7.4 + env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-stable' fast_finish: true before_install: diff --git a/README.md b/README.md index 6429ac3..5a40c57 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This package convert all your localization messages from your Laravel app to Jav ## Features - - Support Laravel 4.2, 5.0, 5.1, 5.2, 5.3, 5.4 and 5.5. + - Support Laravel 4.2, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 6.x, 7.x and 8.x! - Includes [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class). - Allow to specify desired lang files to be converted to JS. - Lang.js API is based on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class. No need to learn a whole API. diff --git a/composer.json b/composer.json index 41ca21d..a701511 100644 --- a/composer.json +++ b/composer.json @@ -53,13 +53,13 @@ }, "require": { "php": "^5.4 || ^7.0", - "illuminate/config": "^4.2 || ^5.0 || ^6.0 || ^7.0", - "illuminate/console": "^4.2 || ^5.0 || ^6.0 || ^7.0", - "illuminate/filesystem": "^4.2 || ^5.0 || ^6.0 || ^7.0", + "illuminate/config": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0", + "illuminate/console": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0", + "illuminate/filesystem": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0", "tedivm/jshrink": "~1.0" }, "require-dev": { - "orchestra/testbench": "^2.2 || ^3.0 || ^4.0", + "orchestra/testbench": "^2.2 || ^3.0 || ^4.0 || ^5.0 || ^6.0", "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0" }, "autoload": { diff --git a/tests/specs/LangJsServiceProviderTest.php b/tests/specs/LangJsServiceProviderTest.php index 4da11dd..fdcb43f 100644 --- a/tests/specs/LangJsServiceProviderTest.php +++ b/tests/specs/LangJsServiceProviderTest.php @@ -23,5 +23,6 @@ public function testShouldRegisterProvider() { // TODO: Add some assertions. (however, this already test if this // package can be provided with the method: getPackageProviders). + $this->assertTrue(true); // Add empty assert to remove warning } }