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
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4']
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
fail-fast: false
name: PHP ${{ matrix.php-versions }} Test dev dependencies on ubuntu-latest
steps:
Expand All @@ -97,15 +97,15 @@ jobs:

phpunit-lowest:
runs-on: ubuntu-latest
name: PHP 8.4 (lowest) Test on ubuntu-latest
name: PHP 8.5 (lowest) Test on ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
php-version: '8.5'
extensions: zip

- name: Install dependencies
Expand All @@ -120,7 +120,7 @@ jobs:

phpunit-windows:
runs-on: windows-latest
name: PHP 8.4 Test on windows-latest
name: PHP 8.5 Test on windows-latest
env:
PANTHER_FIREFOX_BINARY: 'C:\Program Files\Mozilla Firefox\firefox.exe'
SKIP_FIREFOX: 1
Expand All @@ -131,7 +131,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
php-version: '8.5'
extensions: zip

- name: Install dependencies
Expand All @@ -142,15 +142,15 @@ jobs:

phpunit-macos:
runs-on: macos-latest
name: PHP 8.4 Test on macos-latest
name: PHP 8.5 Test on macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
php-version: '8.5'
extensions: zip

- name: Install Firefox
Expand All @@ -169,9 +169,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: [ '8.1', '8.2', '8.3', '8.4']
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
fail-fast: false
name: PHP ${{ matrix.php-versions }} (PHPUnit 11) Test on ubuntu-latest
name: PHP ${{ matrix.php-versions }} (PHPUnit 10) Test on ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
$header = <<<'HEADER'
This file is part of the Panther project.

(c) Kévin Dunglas <dunglas@gmail.com>
(c) Kévin Dunglas <kevin@dunglas.dev>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ CHANGELOG
2.3.0
-----

* Add support for PHP 8.5
* Add support for Symfony 8
* Disable dev-tools by default

2.2.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If you like this software, help save the (real) panthers by [donating to the Pan

## Credits

Created by [Kévin Dunglas](https://dunglas.fr). Sponsored by [Les-Tilleuls.coop](https://les-tilleuls.coop).
Created by [Kévin Dunglas](https://dunglas.dev). Sponsored by [Les-Tilleuls.coop](https://les-tilleuls.coop).

Panther is built on top of [PHP WebDriver](https://github.com/php-webdriver/php-webdriver) and [several other FOSS libraries](https://symfony.com/blog/introducing-symfony-panther-a-browser-testing-and-web-scrapping-library-for-php#thank-you-open-source).
It has been inspired by [Nightwatch.js](http://nightwatchjs.org/), a WebDriver-based testing tool for JavaScript.
26 changes: 13 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,33 @@
"authors": [
{
"name": "Kévin Dunglas",
"email": "dunglas@gmail.com",
"homepage": "https://dunglas.fr"
"email": "kevin@dunglas.dev",
"homepage": "https://dunglas.dev"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"homepage": "https://dunglas.fr",
"homepage": "https://symfony.com/packages/Panther",
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-dom": "*",
"ext-libxml": "*",
"php-webdriver/webdriver": "^1.8.2",
"symfony/browser-kit": "^5.4 || ^6.4 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0",
"symfony/browser-kit": "^6.4 || ^7.3 || ^8.0",
"symfony/dependency-injection": "^6.4 || ^7.3 || ^8.0",
"symfony/deprecation-contracts": "^2.4 || ^3",
"symfony/dom-crawler": "^5.4 || ^6.4 || ^7.0",
"symfony/dom-crawler": "^6.4 || ^7.3 || ^8.0",
"symfony/http-client": "^6.4 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.4 || ^7.0",
"symfony/process": "^5.4 || ^6.4 || ^7.0"
"symfony/http-kernel": "^6.4 || ^7.3 || ^8.0",
"symfony/process": "^6.4 || ^7.3 || ^8.0"
},
"require-dev": {
"symfony/css-selector": "^5.4 || ^6.4 || ^7.0",
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0",
"symfony/mime": "^5.4 || ^6.4 || ^7.0",
"symfony/phpunit-bridge": "^7.2.0"
"symfony/css-selector": "^6.4 || ^7.3 || ^8.0",
"symfony/framework-bundle": "^6.4 || ^7.3 || ^8.0",
"symfony/mime": "^6.4 || ^7.3 || ^8.0",
"symfony/phpunit-bridge": ">=7.3.4"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -50,7 +50,7 @@
use Symfony\Component\Panther\WebDriver\WebDriverMouse;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
* @author Dany Maillard <danymaillard93b@gmail.com>
*
* @method PantherCrawler getCrawler()
Expand Down
4 changes: 2 additions & 2 deletions src/Cookie/CookieJar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -22,7 +22,7 @@
use Symfony\Component\Panther\ExceptionThrower;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class CookieJar extends BaseCookieJar
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -24,7 +24,7 @@
use Symfony\Component\Panther\ExceptionThrower;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class Crawler extends BaseCrawler implements WebDriverElement
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Field/ChoiceFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -21,7 +21,7 @@
use Symfony\Component\Panther\WebDriver\WebDriverCheckbox;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class ChoiceFormField extends BaseChoiceFormField
{
Expand Down
2 changes: 1 addition & 1 deletion src/DomCrawler/Field/FileFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Field/FormFieldTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -20,7 +20,7 @@
/**
* @internal
*
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
trait FormFieldTrait
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Field/InputFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,7 +17,7 @@
use Symfony\Component\Panther\Exception\LogicException;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class InputFormField extends BaseInputFormField
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Field/TextareaFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -17,7 +17,7 @@
use Symfony\Component\Panther\Exception\LogicException;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class TextareaFormField extends BaseTextareaFormField
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -33,7 +33,7 @@
use Symfony\Component\Panther\WebDriver\WebDriverCheckbox;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class Form extends BaseForm
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -19,7 +19,7 @@
use Symfony\Component\Panther\ExceptionThrower;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class Image extends BaseImage
{
Expand Down
4 changes: 2 additions & 2 deletions src/DomCrawler/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand All @@ -19,7 +19,7 @@
use Symfony\Component\Panther\ExceptionThrower;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
* @author Kévin Dunglas <kevin@dunglas.dev>
*/
final class Link extends BaseLink
{
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
* This file is part of the Panther project.
*
* (c) Kévin Dunglas <dunglas@gmail.com>
* (c) Kévin Dunglas <kevin@dunglas.dev>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
Loading
Loading