Skip to content

Commit 9dfa64e

Browse files
authored
Merge pull request #26 from yesdevnull/codecept5
Improved support for Codeception 5/PHP 8
2 parents 856a4aa + 0457053 commit 9dfa64e

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

.gitattributes

-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
/tests export-ignore
33
/.gitattributes export-ignore
44
/.gitignore export-ignore
5-
/Robofile.php export-ignore
65
/*.md export-ignore
76
/*.yml export-ignore

composer.json

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"name": "codeception/module-phpbrowser",
33
"description": "Codeception module for testing web application over HTTP",
4-
"keywords": [ "codeception", "http", "functional-testing" ],
5-
"homepage": "https://codeception.com/",
6-
"type": "library",
74
"license": "MIT",
5+
"type": "library",
6+
"keywords": [
7+
"codeception",
8+
"http",
9+
"functional-testing"
10+
],
811
"authors": [
912
{
1013
"name": "Michael Bodnarchuk"
@@ -13,31 +16,33 @@
1316
"name": "Gintautas Miselis"
1417
}
1518
],
16-
"minimum-stability": "dev",
19+
"homepage": "https://codeception.com/",
1720
"require": {
1821
"php": "^8.0",
1922
"ext-json": "*",
20-
"guzzlehttp/guzzle": "^7.4",
21-
"codeception/lib-innerbrowser": "^2.0 | *@dev",
22-
"codeception/codeception": "^5.0.0-alpha1"
23+
"codeception/codeception": "dev-5.0-interfaces as 5.0.0",
24+
"codeception/lib-innerbrowser": "^3.0",
25+
"guzzlehttp/guzzle": "^7.4"
2326
},
2427
"require-dev": {
2528
"ext-curl": "*",
2629
"aws/aws-sdk-php": "^3.199",
27-
"codeception/module-rest": "^2.0 | *@dev"
30+
"codeception/module-rest": "^2.0 || *@dev"
2831
},
2932
"conflict": {
3033
"codeception/codeception": "<5.0"
3134
},
3235
"suggest": {
3336
"codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests"
3437
},
38+
"minimum-stability": "dev",
3539
"autoload": {
3640
"classmap": [
3741
"src/"
3842
]
3943
},
4044
"config": {
41-
"classmap-authoritative": true
45+
"classmap-authoritative": true,
46+
"sort-packages": true
4247
}
4348
}

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Codeception module for testing web application over HTTP.
99

1010
## Requirements
1111

12-
* `PHP 7.4` or higher.
12+
* `PHP 8.0` or higher.
1313

1414
## Installation
1515

src/Codeception/Module/PhpBrowser.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ class PhpBrowser extends InnerBrowser implements Remote, MultiSession
8383
/**
8484
* @var string[]
8585
*/
86-
protected $requiredFields = ['url'];
86+
protected array $requiredFields = ['url'];
8787

8888
/**
89-
* @var array
89+
* @var array<string, mixed>
9090
*/
91-
protected $config = [
91+
protected array $config = [
9292
'headers' => [],
9393
'verify' => false,
9494
'expect' => false,

0 commit comments

Comments
 (0)