Skip to content

Commit e9afe97

Browse files
committed
Require Codeception 4 again
1 parent e886581 commit e9afe97

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

composer.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name": "codeception/module-phpbrowser",
3-
"description": "Codeception module for testing web application over HTTP",
4-
"keywords": [ "codeception", "http", "functional-testing" ],
5-
"homepage": "https://codeception.com/",
6-
"type": "library",
7-
"license": "MIT",
8-
"authors": [
9-
{
10-
"name": "Michael Bodnarchuk"
11-
},
12-
{
13-
"name": "Gintautas Miselis"
14-
}
15-
],
16-
"minimum-stability": "RC",
17-
"require": {
18-
"php": "^7.4 || ^8.0",
19-
"ext-json": "*",
20-
"guzzlehttp/guzzle": "^7.3",
21-
"codeception/lib-innerbrowser": "^1.5 || *@dev",
22-
"codeception/codeception": "^5.0 || *@dev"
23-
},
24-
"require-dev": {
25-
"ext-curl": "*",
26-
"aws/aws-sdk-php": "^3.199",
27-
"codeception/module-rest": "^1.3 || *@dev"
28-
},
29-
"conflict": {
30-
"codeception/codeception": "<5.0"
31-
},
32-
"suggest": {
33-
"codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests"
34-
},
35-
"autoload": {
36-
"classmap": [
37-
"src/"
38-
]
39-
},
40-
"config": {
41-
"classmap-authoritative": true
42-
}
2+
"name": "codeception/module-phpbrowser",
3+
"description": "Codeception module for testing web application over HTTP",
4+
"keywords": [ "codeception", "http", "functional-testing" ],
5+
"homepage": "https://codeception.com/",
6+
"type": "library",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Michael Bodnarchuk"
11+
},
12+
{
13+
"name": "Gintautas Miselis"
14+
}
15+
],
16+
"minimum-stability": "RC",
17+
"require": {
18+
"php": "^7.4 | ^8.0",
19+
"ext-json": "*",
20+
"guzzlehttp/guzzle": "^7.3",
21+
"codeception/lib-innerbrowser": "^1.5 | *@dev",
22+
"codeception/codeception": "^4.0 | *@dev"
23+
},
24+
"require-dev": {
25+
"ext-curl": "*",
26+
"aws/aws-sdk-php": "^3.199",
27+
"codeception/module-rest": "^1.3 | *@dev"
28+
},
29+
"conflict": {
30+
"codeception/codeception": "<4.0"
31+
},
32+
"suggest": {
33+
"codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests"
34+
},
35+
"autoload": {
36+
"classmap": [
37+
"src/"
38+
]
39+
},
40+
"config": {
41+
"classmap-authoritative": true
42+
}
4343
}

src/Codeception/Module/PhpBrowser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public function _getResponseCode()
221221
return $this->getResponseStatusCode();
222222
}
223223

224-
public function _initializeSession(): void
224+
public function _initializeSession()
225225
{
226226
// independent sessions need independent cookies
227227
$this->client = new Guzzle();
@@ -258,7 +258,7 @@ public function _prepareSession(): void
258258
$this->client->setClient($this->guzzle);
259259
}
260260

261-
public function _backupSession(): array
261+
public function _backupSession()
262262
{
263263
return [
264264
'client' => $this->client,
@@ -268,14 +268,14 @@ public function _backupSession(): array
268268
];
269269
}
270270

271-
public function _loadSession($session): void
271+
public function _loadSession($session)
272272
{
273273
foreach ($session as $key => $val) {
274274
$this->$key = $val;
275275
}
276276
}
277277

278-
public function _closeSession($session = null): void
278+
public function _closeSession($session = null)
279279
{
280280
unset($session);
281281
}

0 commit comments

Comments
 (0)