File tree Expand file tree Collapse file tree 3 files changed +16
-17
lines changed Expand file tree Collapse file tree 3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 88
99 strategy :
1010 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 ]
1313
1414 steps :
1515 - name : Checkout code
@@ -29,15 +29,15 @@ jobs:
2929 with :
3030 repository : Codeception/symfony-module-tests
3131 path : framework-tests
32- ref : 4.4
32+ ref : 4.4_codecept5
3333
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
3636 uses : actions/checkout@v2
3737 with :
3838 repository : Codeception/symfony-module-tests
3939 path : framework-tests
40- ref : main
40+ ref : 5.4_codecept5
4141
4242 - name : Get composer cache directory
4343 id : composer-cache
7070
7171 - name : Install Symfony Sample
7272 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
7575 working-directory : framework-tests
7676
7777 - name : Prepare the test environment
Original file line number Diff line number Diff line change 1414 "homepage" : " https://medium.com/@ganieves"
1515 }
1616 ],
17- "minimum-stability" : " RC " ,
17+ "minimum-stability" : " dev " ,
1818 "require" : {
1919 "php" : " ^7.4 | ^8.0" ,
2020 "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 "
2323 },
2424 "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 " ,
2727 "doctrine/orm" : " ^2.10" ,
2828 "symfony/form" : " ^4.4 | ^5.0" ,
2929 "symfony/framework-bundle" : " ^4.4 | ^5.0" ,
3232 "symfony/routing" : " ^4.4 | ^5.0" ,
3333 "symfony/security-bundle" : " ^4.4 | ^5.0" ,
3434 "symfony/twig-bundle" : " ^4.4 | ^5.0" ,
35- "vlucas/phpdotenv" : " ^4.2 | ^5.4 "
35+ "vlucas/phpdotenv" : " ^4.2 | ^5.3 "
3636 },
3737 "suggest" : {
3838 "codeception/module-asserts" : " Include traditional PHPUnit assertions in your tests" ,
Original file line number Diff line number Diff line change 2525use Codeception \Module \Symfony \TimeAssertionsTrait ;
2626use Codeception \Module \Symfony \TwigAssertionsTrait ;
2727use Codeception \TestInterface ;
28+ use Doctrine \ORM \EntityManagerInterface ;
2829use Exception ;
2930use ReflectionClass ;
3031use ReflectionException ;
@@ -241,10 +242,8 @@ protected function onReconfigure(array $settings = []): void
241242 * Retrieve Entity Manager.
242243 *
243244 * EM service is retrieved once and then that instance returned on each call
244- *
245- * @return \Doctrine\ORM\EntityManagerInterface
246245 */
247- public function _getEntityManager ()
246+ public function _getEntityManager (): EntityManagerInterface
248247 {
249248 if ($ this ->kernel === null ) {
250249 $ this ->fail ('Symfony module is not loaded ' );
You can’t perform that action at this time.
0 commit comments