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
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
/tests export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/Robofile.php export-ignore
/*.md export-ignore
/*.yml export-ignore
23 changes: 14 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -13,31 +16,33 @@
"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"
},
"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
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/Codeception/Module/PhpBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ class PhpBrowser extends InnerBrowser implements Remote, MultiSession
/**
* @var string[]
*/
protected $requiredFields = ['url'];
protected array $requiredFields = ['url'];

/**
* @var array
* @var array<string, mixed>
*/
protected $config = [
protected array $config = [
'headers' => [],
'verify' => false,
'expect' => false,
Expand Down