File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,12 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
php :
19
+ - ' 8.0'
19
20
- ' 7.4'
20
21
- ' 7.3'
21
- - ' 7.2'
22
22
symfony : ['']
23
23
experimental : [false]
24
24
include :
25
- # - description: 'nightly'
26
- # os: 'ubuntu-latest'
27
- # php: '8.0'
28
25
- symfony : ' ^4.4'
29
26
os : ' ubuntu-latest'
30
27
php : ' 7.4'
@@ -33,14 +30,16 @@ jobs:
33
30
php : ' 7.4'
34
31
- description : ' Prefer lowest'
35
32
os : ' ubuntu-latest'
36
- php : ' 7.2 '
33
+ php : ' 7.3 '
37
34
dependencies : ' --prefer-lowest'
38
35
env :
39
36
SYMFONY_DEPRECATIONS_HELPER : ' disabled'
40
37
41
38
steps :
42
39
- name : Checkout
43
40
uses : actions/checkout@v2
41
+ with :
42
+ fetch-depth : 2 # needed by codecov sometimes
44
43
- name : Setup PHP
45
44
uses : shivammathur/setup-php@v2
46
45
with :
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
## Unreleased
7
- * Bump minimum PHP required version to 7.2 (#1 )
7
+ * Bump minimum PHP required version to 7.3 (#1 )
8
+ * Add PHP 8 support (#6 )
8
9
* Add Symfony 5 support (#4 )
9
10
* Add Psalm (level 1) static analysis (#5 )
10
11
* Fix possible ` null ` when command name is not set, use FQCN of command as fallback (#5 )
Original file line number Diff line number Diff line change 26
26
}
27
27
},
28
28
"require" : {
29
- "php" : " ^7.2 " ,
29
+ "php" : " ^7.3 | ^8.0 " ,
30
30
"ext-pcntl" : " *" ,
31
+ "phpspec/prophecy-phpunit" : " ^2.0" ,
31
32
"symfony/console" : " ^3.4 | ^4.0 | ^5.0"
32
33
},
33
34
"require-dev" : {
36
37
"phpstan/extension-installer" : " ^1.0" ,
37
38
"phpstan/phpstan" : " ^0.12.55" ,
38
39
"phpstan/phpstan-phpunit" : " ^0.12.16" ,
39
- "phpunit/phpunit" : " ^7 .5.20 | ^8 .5.3 " ,
40
+ "phpunit/phpunit" : " ^8 .5.14 | ^9 .5.2 " ,
40
41
"symfony/phpunit-bridge" : " ^5.2" ,
41
42
"vimeo/psalm" : " ^4.6"
42
43
}
Original file line number Diff line number Diff line change 5
5
namespace Facile \TerminableLoop \Tests \E2E ;
6
6
7
7
use PHPUnit \Framework \TestCase ;
8
+ use Prophecy \PhpUnit \ProphecyTrait ;
8
9
use Symfony \Component \Process \Process ;
9
10
10
11
class TerminateCommandTest extends TestCase
11
12
{
13
+ use ProphecyTrait;
14
+
12
15
private const BASH_COMMAND = __DIR__ . '/../../bin/terminable-loop-command.sh ' ;
13
16
private const CONSOLE_COMMAND = __DIR__ . '/../Stub/console ' ;
14
17
private const STUB_COMMAND = 'stub:terminable:sleep ' ;
Original file line number Diff line number Diff line change 7
7
use Facile \TerminableLoop \AbstractTerminableCommand ;
8
8
use PHPUnit \Framework \TestCase ;
9
9
use Prophecy \Argument ;
10
+ use Prophecy \PhpUnit \ProphecyTrait ;
10
11
use Symfony \Bridge \PhpUnit \ClockMock ;
11
12
use Symfony \Component \Console \Input \InputInterface ;
12
13
use Symfony \Component \Console \Output \OutputInterface ;
13
14
14
15
class AbstractTerminableCommandTest extends TestCase
15
16
{
17
+ use ProphecyTrait;
18
+
16
19
public static function setUpBeforeClass (): void
17
20
{
18
21
ClockMock::register (AbstractTerminableCommand::class);
You can’t perform that action at this time.
0 commit comments