Skip to content

Update PhpBrowser.php: Adding note about IDN and punycode #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025
Merged
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
50 changes: 22 additions & 28 deletions src/Codeception/Module/PhpBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
*
* If test fails stores last shown page in 'output' dir.
*
* ## Status
*
* * Maintainer: **davert**
* * Stability: **stable**
* * Contact: [email protected]
*
*
* ## Configuration
*
* * url *required* - start url of your app
Expand All @@ -42,28 +35,29 @@
* * .. those and other [Guzzle Request options](https://docs.guzzlephp.org/en/latest/request-options.html)
*
*
* ### Example (`acceptance.suite.yml`)
*
* modules:
* enabled:
* - PhpBrowser:
* url: 'http://localhost'
* auth: ['admin', '123345']
* curl:
* CURLOPT_RETURNTRANSFER: true
* cookies:
* cookie-1:
* Name: userName
* Value: john.doe
* cookie-2:
* Name: authToken
* Value: 1abcd2345
* Domain: subdomain.domain.com
* Path: /admin/
* Expires: 1292177455
* Secure: true
* HttpOnly: false
* ### Example (`Acceptance.suite.yml`)
*
* ```yaml
* modules:
* enabled:
* - PhpBrowser:
* url: 'http://localhost' # Internationalized domain names (IDN) need to be passed in punycode
* auth: ['admin', '123345']
* curl:
* CURLOPT_RETURNTRANSFER: true
* cookies:
* cookie-1:
* Name: userName
* Value: john.doe
* cookie-2:
* Name: authToken
* Value: 1abcd2345
* Domain: subdomain.domain.com
* Path: /admin/
* Expires: 1292177455
* Secure: true
* HttpOnly: false
* ```
*
* All SSL certification checks are disabled by default.
* Use Guzzle request options to configure certifications and others.
Expand Down