File tree Expand file tree Collapse file tree 4 files changed +43
-16
lines changed Expand file tree Collapse file tree 4 files changed +43
-16
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- php :
4
- - 7.1
5
- - 7.2
3
+ matrix :
4
+ include :
5
+ - php : 7.1
6
+ env : ILLUMINATE_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
7
+ - php : 7.1
8
+ env : ILLUMINATE_VERSION=5.7.* TESTBENCH_VERSION=3.7.*
9
+ - php : 7.1
10
+ env : ILLUMINATE_VERSION=5.6.* TESTBENCH_VERSION=3.6.*
11
+ - php : 7.2
12
+ env : ILLUMINATE_VERSION=6.* TESTBENCH_VERSION=4.*
13
+ - php : 7.2
14
+ env : ILLUMINATE_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
15
+ - php : 7.2
16
+ env : ILLUMINATE_VERSION=5.7.* TESTBENCH_VERSION=3.7.*
17
+ - php : 7.2
18
+ env : ILLUMINATE_VERSION=5.6.* TESTBENCH_VERSION=3.6.*
19
+ - php : 7.3
20
+ env : ILLUMINATE_VERSION=6.* TESTBENCH_VERSION=4.*
21
+ - php : 7.3
22
+ env : ILLUMINATE_VERSION=5.8.* TESTBENCH_VERSION=3.8.*
23
+ - php : 7.3
24
+ env : ILLUMINATE_VERSION=5.7.* TESTBENCH_VERSION=3.7.*
25
+ - php : 7.3
26
+ env : ILLUMINATE_VERSION=5.6.* TESTBENCH_VERSION=3.6.*
27
+
28
+ before_script :
29
+
30
+ before_install :
31
+ - travis_retry composer self-update
32
+ - composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update --dev
33
+ - composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update
34
+
35
+ install : composer update --prefer-source --no-interaction
6
36
7
37
sudo : false
8
38
9
39
cache :
10
- directories :
11
- - $HOME/.composer/cache
12
-
13
- before_script :
14
- - travis_retry composer self-update
15
- - travis_retry composer update --no-interaction
40
+ directories :
41
+ - $HOME/.composer/cache
16
42
17
43
script :
18
- - vendor/bin/phpunit
44
+ - vendor/bin/phpunit
Original file line number Diff line number Diff line change 23
23
"require" : {
24
24
"php" : " ^7.1" ,
25
25
"codezero/browser-locale" : " ^3.0" ,
26
- "illuminate/support" : " ^ 5.6"
26
+ "illuminate/support" : " >= 5.6"
27
27
},
28
28
"require-dev" : {
29
29
"mockery/mockery" : " ^1.0" ,
30
- "orchestra/testbench" : " 3.6.* " ,
31
- "phpunit/phpunit" : " ^7.0"
30
+ "orchestra/testbench" : " >= 3.6" ,
31
+ "phpunit/phpunit" : " ^7.0|^8.0 "
32
32
},
33
33
"scripts" : {
34
34
"test" : " phpunit"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class SetLocaleTest extends TestCase
21
21
*
22
22
* @return void
23
23
*/
24
- protected function setUp ()
24
+ protected function setUp (): void
25
25
{
26
26
parent ::setUp ();
27
27
Original file line number Diff line number Diff line change 4
4
5
5
use CodeZero \Localizer \LocalizerServiceProvider ;
6
6
use Illuminate \Support \Facades \Config ;
7
+ use Illuminate \Support \Str ;
7
8
use Orchestra \Testbench \TestCase as BaseTestCase ;
8
9
9
10
abstract class TestCase extends BaseTestCase
@@ -13,11 +14,11 @@ abstract class TestCase extends BaseTestCase
13
14
*
14
15
* @return void
15
16
*/
16
- protected function setUp ()
17
+ protected function setUp (): void
17
18
{
18
19
parent ::setUp ();
19
20
20
- Config::set ('app.key ' , str_random (32 ));
21
+ Config::set ('app.key ' , Str:: random (32 ));
21
22
}
22
23
23
24
/**
You can’t perform that action at this time.
0 commit comments