diff --git a/.gitattributes b/.gitattributes index 87f3679..2d44cfe 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,6 +2,5 @@ /tests export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/Robofile.php export-ignore /*.md export-ignore /*.yml export-ignore diff --git a/composer.json b/composer.json index b0c3292..bbd2981 100644 --- a/composer.json +++ b/composer.json @@ -1,10 +1,13 @@ { "name": "codeception/module-phpbrowser", "description": "Codeception module for testing web application over HTTP", - "keywords": [ "codeception", "http", "functional-testing" ], - "homepage": "https://codeception.com/", - "type": "library", "license": "MIT", + "type": "library", + "keywords": [ + "codeception", + "http", + "functional-testing" + ], "authors": [ { "name": "Michael Bodnarchuk" @@ -13,18 +16,18 @@ "name": "Gintautas Miselis" } ], - "minimum-stability": "dev", + "homepage": "https://codeception.com/", "require": { "php": "^8.0", "ext-json": "*", - "guzzlehttp/guzzle": "^7.4", - "codeception/lib-innerbrowser": "^2.0 | *@dev", - "codeception/codeception": "^5.0.0-alpha1" + "codeception/codeception": "dev-5.0-interfaces as 5.0.0", + "codeception/lib-innerbrowser": "^3.0", + "guzzlehttp/guzzle": "^7.4" }, "require-dev": { "ext-curl": "*", "aws/aws-sdk-php": "^3.199", - "codeception/module-rest": "^2.0 | *@dev" + "codeception/module-rest": "^2.0 || *@dev" }, "conflict": { "codeception/codeception": "<5.0" @@ -32,12 +35,14 @@ "suggest": { "codeception/phpbuiltinserver": "Start and stop PHP built-in web server for your tests" }, + "minimum-stability": "dev", "autoload": { "classmap": [ "src/" ] }, "config": { - "classmap-authoritative": true + "classmap-authoritative": true, + "sort-packages": true } } diff --git a/readme.md b/readme.md index 144cbb8..3c26e32 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ A Codeception module for testing web application over HTTP. ## Requirements -* `PHP 7.4` or higher. +* `PHP 8.0` or higher. ## Installation diff --git a/src/Codeception/Module/PhpBrowser.php b/src/Codeception/Module/PhpBrowser.php index 672e4c1..0222876 100644 --- a/src/Codeception/Module/PhpBrowser.php +++ b/src/Codeception/Module/PhpBrowser.php @@ -83,12 +83,12 @@ class PhpBrowser extends InnerBrowser implements Remote, MultiSession /** * @var string[] */ - protected $requiredFields = ['url']; + protected array $requiredFields = ['url']; /** - * @var array + * @var array */ - protected $config = [ + protected array $config = [ 'headers' => [], 'verify' => false, 'expect' => false,