Skip to content

Commit

Permalink
Add Laravel 8 support (#153)
Browse files Browse the repository at this point in the history
* Add Laravel 8 support

* Revert back to assertFileNotExists, will be deprecated in PHPUnit 10

* Update .travis orchestra/testbench
  • Loading branch information
Edofre authored Sep 16, 2020
1 parent 76026e0 commit 9e92f50
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions tests/specs/LangJsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 9e92f50

Please sign in to comment.