Skip to content

Commit 89b6aec

Browse files
KacerCZf3l1x
authored andcommitted
Updated Codeception to version 4.0
1 parent ff9ef8e commit 89b6aec

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

codeception.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ paths:
66
data: tests/_data
77
support: tests/_helpers
88

9+
bootstrap: _bootstrap.php
10+
911
settings:
10-
bootstrap: _bootstrap.php
1112
log: true
1213

1314
coverage:

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
],
2121
"require": {
2222
"php": "^7.2",
23-
"codeception/codeception": "^2.5.1 || ^3.0.2",
23+
"codeception/codeception": "^4.0.2",
24+
"codeception/lib-innerbrowser": "^1.3",
2425
"nette/di": "^3.0",
2526
"nette/bootstrap": "^3.0",
2627
"nette/http": "^3.0.3",

phpstan.neon

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ parameters:
2020
# Complicated to test dev-required phpstan with separatly installed version
2121
- '#^Call to an undefined method PHPStan\\#'
2222

23-
# Symfony 4.3 deprecation message
24-
- '#^Class Contributte\\Codeception\\Connector\\NetteConnector extends deprecated class Symfony\\Component\\BrowserKit\\Client(.+)#'
25-
2623
earlyTerminatingMethodCalls:
2724
Codeception\Module:
2825
- fail

src/Connector/NetteConnector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
use Nette\DI\Container;
1010
use Nette\Http\IRequest;
1111
use Nette\Http\IResponse;
12-
use Symfony\Component\BrowserKit\Client;
12+
use Symfony\Component\BrowserKit\AbstractBrowser;
1313
use Symfony\Component\BrowserKit\Request;
1414
use Symfony\Component\BrowserKit\Response;
1515
use Throwable;
1616

17-
class NetteConnector extends Client
17+
class NetteConnector extends AbstractBrowser
1818
{
1919

2020
/** @var callable */

0 commit comments

Comments
 (0)