Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
],
"minimum-stability": "RC",
"require": {
"php": "^7.4 || ^8.0",
"codeception/lib-innerbrowser": "^1.0",
"codeception/codeception": "^4.0",
"php": "^7.4 | ^8.0",
"codeception/lib-innerbrowser": "^2.0",
"codeception/codeception": "^4.1",
"container-interop/container-interop": "^1.2",
"laminas/laminas-diactoros": "^1.8.7",
"mezzio/mezzio": "^3.0"
},
"require-dev": {
"codeception/module-rest": "^1.0"
"codeception/module-rest": "^2.0"
},
"autoload": {
"classmap": [
Expand Down
6 changes: 4 additions & 2 deletions src/Codeception/Module/Mezzio.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use Codeception\TestInterface;
use Interop\Container\ContainerInterface;
use Mezzio\Application;
use PHPUnit\Framework\AssertionFailedError;
use Symfony\Component\BrowserKit\AbstractBrowser;

/**
* This module allows you to run tests inside Mezzio.
Expand Down Expand Up @@ -48,7 +50,7 @@ class Mezzio extends Framework implements DoctrineProvider
/**
* @var \Codeception\Lib\Connector\Mezzio
*/
public $client;
public ?AbstractBrowser $client;

/**
* @deprecated Doesn't work as expected if Application is recreated between requests
Expand Down Expand Up @@ -101,7 +103,7 @@ public function _getEntityManager()
{
$service = 'Doctrine\ORM\EntityManager';
if (!$this->container->has($service)) {
throw new \PHPUnit\Framework\AssertionFailedError("Service $service is not available in container");
throw new AssertionFailedError("Service $service is not available in container");
}

return $this->container->get('Doctrine\ORM\EntityManager');
Expand Down