File tree 3 files changed +16
-17
lines changed
3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 8
8
9
9
strategy :
10
10
matrix :
11
- php : [7.4, 8.0, 8.1]
12
- symfony : [4.4, 5.3 ]
11
+ php : [8.0, 8.1]
12
+ symfony : [4.4, 5.4 ]
13
13
14
14
steps :
15
15
- name : Checkout code
@@ -29,15 +29,15 @@ jobs:
29
29
with :
30
30
repository : Codeception/symfony-module-tests
31
31
path : framework-tests
32
- ref : 4.4
32
+ ref : 4.4_codecept5
33
33
34
- - name : Checkout Symfony 5.3 Sample
35
- if : matrix.symfony == 5.3
34
+ - name : Checkout Symfony 5.4 Sample
35
+ if : matrix.symfony == 5.4
36
36
uses : actions/checkout@v2
37
37
with :
38
38
repository : Codeception/symfony-module-tests
39
39
path : framework-tests
40
- ref : main
40
+ ref : 5.4_codecept5
41
41
42
42
- name : Get composer cache directory
43
43
id : composer-cache
70
70
71
71
- name : Install Symfony Sample
72
72
run : |
73
- composer remove codeception/module-symfony --dev --no-update
74
- composer install --no-progress
73
+ composer remove codeception/module-symfony --dev --no-update --ignore-platform-req=php
74
+ composer install --no-progress --ignore-platform-req=php
75
75
working-directory : framework-tests
76
76
77
77
- name : Prepare the test environment
Original file line number Diff line number Diff line change 14
14
"homepage" : " https://medium.com/@ganieves"
15
15
}
16
16
],
17
- "minimum-stability" : " RC " ,
17
+ "minimum-stability" : " dev " ,
18
18
"require" : {
19
19
"php" : " ^7.4 | ^8.0" ,
20
20
"ext-json" : " *" ,
21
- "codeception/lib-innerbrowser" : " ^2.0" ,
22
- "codeception/codeception" : " ^4.1 "
21
+ "codeception/lib-innerbrowser" : " ^2.0 | *@dev " ,
22
+ "codeception/codeception" : " ^5.0.0-alpha1 "
23
23
},
24
24
"require-dev" : {
25
- "codeception/module-asserts" : " ^2.0" ,
26
- "codeception/module-doctrine2" : " ^2.0" ,
25
+ "codeception/module-asserts" : " ^2.0 | *@dev " ,
26
+ "codeception/module-doctrine2" : " ^2.0 | *@dev " ,
27
27
"doctrine/orm" : " ^2.10" ,
28
28
"symfony/form" : " ^4.4 | ^5.0" ,
29
29
"symfony/framework-bundle" : " ^4.4 | ^5.0" ,
32
32
"symfony/routing" : " ^4.4 | ^5.0" ,
33
33
"symfony/security-bundle" : " ^4.4 | ^5.0" ,
34
34
"symfony/twig-bundle" : " ^4.4 | ^5.0" ,
35
- "vlucas/phpdotenv" : " ^4.2 | ^5.4 "
35
+ "vlucas/phpdotenv" : " ^4.2 | ^5.3 "
36
36
},
37
37
"suggest" : {
38
38
"codeception/module-asserts" : " Include traditional PHPUnit assertions in your tests" ,
Original file line number Diff line number Diff line change 25
25
use Codeception \Module \Symfony \TimeAssertionsTrait ;
26
26
use Codeception \Module \Symfony \TwigAssertionsTrait ;
27
27
use Codeception \TestInterface ;
28
+ use Doctrine \ORM \EntityManagerInterface ;
28
29
use Exception ;
29
30
use ReflectionClass ;
30
31
use ReflectionException ;
@@ -241,10 +242,8 @@ protected function onReconfigure(array $settings = []): void
241
242
* Retrieve Entity Manager.
242
243
*
243
244
* EM service is retrieved once and then that instance returned on each call
244
- *
245
- * @return \Doctrine\ORM\EntityManagerInterface
246
245
*/
247
- public function _getEntityManager ()
246
+ public function _getEntityManager (): EntityManagerInterface
248
247
{
249
248
if ($ this ->kernel === null ) {
250
249
$ this ->fail ('Symfony module is not loaded ' );
You can’t perform that action at this time.
0 commit comments