File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 ],
1313 "minimum-stability" : " RC" ,
1414 "require" : {
15- "php" : " ^7.4 || ^8.0" ,
16- "codeception/lib-innerbrowser" : " ^1 .0" ,
17- "codeception/codeception" : " ^4.0 " ,
15+ "php" : " ^7.4 | ^8.0" ,
16+ "codeception/lib-innerbrowser" : " ^2 .0" ,
17+ "codeception/codeception" : " ^4.1 " ,
1818 "container-interop/container-interop" : " ^1.2" ,
1919 "laminas/laminas-diactoros" : " ^1.8.7" ,
2020 "mezzio/mezzio" : " ^3.0"
2121 },
2222 "require-dev" : {
23- "codeception/module-rest" : " ^1 .0"
23+ "codeception/module-rest" : " ^2 .0"
2424 },
2525 "autoload" : {
2626 "classmap" : [
Original file line number Diff line number Diff line change 1010use Codeception \TestInterface ;
1111use Interop \Container \ContainerInterface ;
1212use Mezzio \Application ;
13+ use PHPUnit \Framework \AssertionFailedError ;
14+ use Symfony \Component \BrowserKit \AbstractBrowser ;
1315
1416/**
1517 * This module allows you to run tests inside Mezzio.
@@ -48,7 +50,7 @@ class Mezzio extends Framework implements DoctrineProvider
4850 /**
4951 * @var \Codeception\Lib\Connector\Mezzio
5052 */
51- public $ client ;
53+ public ? AbstractBrowser $ client ;
5254
5355 /**
5456 * @deprecated Doesn't work as expected if Application is recreated between requests
@@ -101,7 +103,7 @@ public function _getEntityManager()
101103 {
102104 $ service = 'Doctrine\ORM\EntityManager ' ;
103105 if (!$ this ->container ->has ($ service )) {
104- throw new \ PHPUnit \ Framework \ AssertionFailedError ("Service $ service is not available in container " );
106+ throw new AssertionFailedError ("Service $ service is not available in container " );
105107 }
106108
107109 return $ this ->container ->get ('Doctrine\ORM\EntityManager ' );
You can’t perform that action at this time.
0 commit comments