Commit 5f542f1 1 parent c36a698 commit 5f542f1 Copy full SHA for 5f542f1
File tree 4 files changed +49
-22
lines changed
4 files changed +49
-22
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ jobs:
23
23
include :
24
24
- php-version : ' 7.3'
25
25
dependency-versions : ' lowest'
26
+ phpunit-config : ' phpunit-9.xml.dist'
26
27
env :
27
28
SYMFONY_DEPRECATIONS_HELPER : disabled
28
29
29
30
- php-version : ' 7.4'
30
31
dependency-versions : ' highest'
32
+ phpunit-config : ' phpunit-9.xml.dist'
31
33
env :
32
34
SYMFONY_DEPRECATIONS_HELPER : weak
33
35
51
53
env :
52
54
SYMFONY_DEPRECATIONS_HELPER : weak
53
55
56
+ - php-version : ' 8.4'
57
+ dependency-versions : ' highest'
58
+ composer-options : ' --ignore-platform-reqs'
59
+ env :
60
+ SYMFONY_DEPRECATIONS_HELPER : weak
61
+
54
62
services :
55
63
mysql :
56
64
image : mysql:5.7
@@ -79,13 +87,14 @@ jobs:
79
87
uses : ramsey/composer-install@v2
80
88
with :
81
89
dependency-versions : ${{matrix.dependency-versions}}
90
+ composer-options : ${{ matrix.composer-options }}
82
91
83
92
- name : Bootstrap test environment
84
93
run : composer bootstrap-test-environment
85
94
env : ${{ matrix.env }}
86
95
87
96
- name : Execute test cases
88
- run : time composer test
97
+ run : time composer test -- --config ${{ matrix.phpunit-config || 'phpunit.xml.dist' }}
89
98
env : ${{ matrix.env }}
90
99
91
100
lint :
Original file line number Diff line number Diff line change 31
31
"phpstan/phpstan-doctrine" : " ^1.2" ,
32
32
"phpstan/phpstan-phpunit" : " ^1.0" ,
33
33
"phpstan/phpstan-symfony" : " ^1.1" ,
34
- "phpunit/phpunit" : " ^8.5.9 || ^9.5 " ,
34
+ "phpunit/phpunit" : " ^9.6 || ^10.0 " ,
35
35
"symfony/dotenv" : " ^5.4 || ^6.0 || ^7.0" ,
36
36
"symfony/monolog-bundle" : " ^3.1" ,
37
- "symfony/phpunit-bridge" : " ^5.2 || ^6.0 || ^7.0" ,
38
37
"thecodingmachine/phpstan-strict-rules" : " ^1.0"
39
38
},
40
39
"conflict" : {
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit bootstrap =" Tests/test-bootstrap.php" colors =" true" >
3
+
4
+ <testsuites >
5
+ <testsuite name =" SuluThemeBundle Test Suite" >
6
+ <directory suffix =" Test.php" >./Tests</directory >
7
+ </testsuite >
8
+ </testsuites >
9
+
10
+ <filter >
11
+ <whitelist >
12
+ <directory >./</directory >
13
+ <exclude >
14
+ <directory >./Tests</directory >
15
+ <directory >./vendor</directory >
16
+ </exclude >
17
+ </whitelist >
18
+ </filter >
19
+
20
+ <php >
21
+ <env name =" KERNEL_CLASS" value =" Sulu\Bundle\ThemeBundle\Tests\Application\Kernel" />
22
+ <env name =" APP_ENV" value =" test" force =" true" />
23
+ </php >
24
+ </phpunit >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<phpunit bootstrap =" Tests/test-bootstrap.php" colors =" true" >
3
-
4
3
<testsuites >
5
- <testsuite name =" SuluThemeBundle Test Suite " >
6
- <directory suffix = " Test.php " >./Tests</directory >
4
+ <testsuite name =" Sulu Theme Bundle " >
5
+ <directory >./Tests</directory >
7
6
</testsuite >
8
7
</testsuites >
9
8
10
- <filter >
11
- <whitelist >
12
- <directory >./</directory >
13
- <exclude >
14
- <directory >./Tests</directory >
15
- <directory >./vendor</directory >
16
- </exclude >
17
- </whitelist >
18
- </filter >
19
-
20
9
<php >
21
- <env name =" SYMFONY_PHPUNIT_VERSION" value =" 8.0" />
22
- <env name =" APP_ENV" value =" test" />
23
- <env name =" SYMFONY_DEPRECATIONS_HELPER" value =" weak" />
10
+ <env name =" KERNEL_CLASS" value =" Sulu\Bundle\ThemeBundle\Tests\Application\Kernel" />
11
+ <env name =" APP_ENV" value =" test" force =" true" />
24
12
</php >
25
13
26
- <listeners >
27
- <listener class =" Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
28
- </listeners >
14
+ <source >
15
+ <include >
16
+ <directory >./</directory >
17
+ </include >
18
+ <exclude >
19
+ <directory >Resources/</directory >
20
+ <directory >Tests/</directory >
21
+ <directory >vendor/</directory >
22
+ </exclude >
23
+ </source >
29
24
</phpunit >
You can’t perform that action at this time.
0 commit comments