Skip to content

Commit dccbf6d

Browse files
authored
Update dependencies (#14)
1 parent 513c7e9 commit dccbf6d

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
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": [

src/Codeception/Module/Mezzio.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
use Codeception\TestInterface;
1111
use Interop\Container\ContainerInterface;
1212
use 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');

0 commit comments

Comments
 (0)