File tree 5 files changed +25
-7
lines changed
5 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ return PhpCsFixer\Config::create()
38
38
'phpdoc_add_missing_param_annotation ' => true ,
39
39
'phpdoc_order ' => true ,
40
40
'semicolon_after_instruction ' => true ,
41
+ 'single_line_throw ' => false ,
41
42
'strict_comparison ' => true ,
42
43
'strict_param ' => true ,
43
44
))
Original file line number Diff line number Diff line change 59
59
-
60
60
<< : *STANDARD_TEST_JOB
61
61
stage : Test
62
- php : 7.3
62
+ php : 7.4
63
+
64
+ -
65
+ << : *STANDARD_TEST_JOB
66
+ stage : Test
67
+ php : nightly
63
68
env : COMPOSER_FLAGS="--ignore-platform-reqs"
Original file line number Diff line number Diff line change 10
10
}
11
11
],
12
12
"require" : {
13
- "php" : " ^5.5.9 || ^7.0" ,
13
+ "php" : " ^5.6 || ^7.0 || ^8 .0" ,
14
14
"symfony/process" : " ^3.4 || ^4 || ^5"
15
15
},
16
16
"require-dev" : {
17
- "friendsofphp/php-cs-fixer" : " ^2.9 " ,
17
+ "friendsofphp/php-cs-fixer" : " ^2.16 " ,
18
18
"maglnet/composer-require-checker" : " ^0.1.6" ,
19
- "phpunit/phpunit" : " ^5.7.27 || ^6.5.8 || ^7.1" ,
19
+ "phpunit/phpunit" : " ^5.7.27 || ^6.5.8 || ^7.1 || ^8 || ^9 " ,
20
20
"symfony/phpunit-bridge" : " ^4.0 || ^5.0"
21
21
},
22
22
"config" : {
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ public function testSimpleExecution()
27
27
28
28
$ cliResult = $ scriptExecutor ->getResult ();
29
29
30
- $ this ->assertContains (basename (__FILE__ ), $ cliResult ->getOutput ());
30
+ if (\is_callable ([$ this , 'assertStringContainsString ' ])) {
31
+ $ this ->assertStringContainsString (basename (__FILE__ ), $ cliResult ->getOutput ());
32
+ } else {
33
+ $ this ->assertContains (basename (__FILE__ ), $ cliResult ->getOutput ());
34
+ }
31
35
}
32
36
33
37
public function testSimpleExecutionWithArray ()
@@ -36,6 +40,10 @@ public function testSimpleExecutionWithArray()
36
40
37
41
$ cliResult = $ scriptExecutor ->getResult ();
38
42
39
- $ this ->assertContains (basename (__FILE__ ), $ cliResult ->getOutput ());
43
+ if (\is_callable ([$ this , 'assertStringContainsString ' ])) {
44
+ $ this ->assertStringContainsString (basename (__FILE__ ), $ cliResult ->getOutput ());
45
+ } else {
46
+ $ this ->assertContains (basename (__FILE__ ), $ cliResult ->getOutput ());
47
+ }
40
48
}
41
49
}
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ public function testSimpleExecution()
27
27
28
28
$ cliResult = $ scriptExecutor ->getResult ();
29
29
30
- $ this ->assertContains (basename (__FILE__ ), $ cliResult ->getOutput ());
30
+ if (\is_callable ([$ this , 'assertStringContainsString ' ])) {
31
+ $ this ->assertStringContainsString (basename (__FILE__ ), $ cliResult ->getOutput ());
32
+ } else {
33
+ $ this ->assertContains (basename (__FILE__ ), $ cliResult ->getOutput ());
34
+ }
31
35
}
32
36
}
You can’t perform that action at this time.
0 commit comments