Skip to content

Commit 4484157

Browse files
committed
Update CS rules
1 parent 321e749 commit 4484157

File tree

6 files changed

+43
-41
lines changed

6 files changed

+43
-41
lines changed

.php-cs-fixer.dist.php

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<?php
22

3-
$licence = <<<'EOF'
4-
This file is part of the Playwright PHP community project.
5-
For the full copyright and license information, please view
6-
the LICENSE file that was distributed with this source code.
7-
EOF;
3+
$license = <<<LICENSE
4+
This file is part of the community-maintained Playwright PHP project.
5+
It is not affiliated with or endorsed by Microsoft.
6+
7+
(c) 2025-Present - Playwright PHP - https://github.com/playwright-php
8+
9+
For the full copyright and license information, please view the LICENSE
10+
file that was distributed with this source code.
11+
LICENSE;
812

913
$finder = (new PhpCsFixer\Finder())
1014
->in(__DIR__);
@@ -14,10 +18,8 @@
1418
->setFinder($finder)
1519
->setRiskyAllowed(true)
1620
->setRules([
17-
'@PSR12' => true,
1821
'@Symfony' => true,
19-
'no_unused_imports' => true,
20-
'array_syntax' => ['syntax' => 'short'],
2122
'declare_strict_types' => true,
22-
'header_comment' => ['header' => $licence],
23-
]);
23+
'header_comment' => ['header' => $license],
24+
])
25+
;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ composer require --dev playwright-php/playwright-mink
3535

3636
```php
3737
use Behat\Mink\Session;
38-
use PlaywrightPHP\Mink\Driver\PlaywrightDriver;
38+
use Playwright\Mink\Driver\PlaywrightDriver;
3939

4040
$driver = new PlaywrightDriver(browserType: 'chromium', headless: true);
4141
$session = new Session($driver);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
},
3838
"autoload": {
3939
"psr-4": {
40-
"PlaywrightPHP\\Mink\\": "src/"
40+
"Playwright\\Mink\\": "src/"
4141
}
4242
},
4343
"autoload-dev": {
4444
"psr-4": {
45-
"PlaywrightPHP\\Mink\\Tests\\": "tests/"
45+
"Playwright\\Mink\\Tests\\": "tests/"
4646
}
4747
},
4848
"extra": {

phpunit.xml.dist

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunit colors="true" bootstrap="vendor/autoload.php">
43
<php>
5-
<var name="driver_config_factory" value="PlaywrightPHP\Mink\Tests\Config::getInstance" />
4+
<var name="driver_config_factory" value="Playwright\Mink\Tests\Config::getInstance"/>
65
</php>
7-
86
<testsuites>
97
<testsuite name="Functional tests">
108
<directory>vendor/mink/driver-testsuite/tests</directory>
119
</testsuite>
12-
<!-- &lt;!&ndash; if needed to add more tests &ndash;&gt;-->
13-
<!-- <testsuite name="Driver tests">-->
14-
<!-- <directory>./tests/</directory>-->
15-
<!-- </testsuite>-->
1610
</testsuites>
17-
1811
<filter>
1912
<whitelist>
2013
<directory>./src</directory>
2114
</whitelist>
2215
</filter>
23-
2416
<listeners>
2517
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
2618
</listeners>

src/Driver/PlaywrightDriver.php

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,32 @@
33
declare(strict_types=1);
44

55
/*
6-
* This file is part of the Playwright PHP community project.
7-
* For the full copyright and license information, please view
8-
* the LICENSE file that was distributed with this source code.
6+
* This file is part of the community-maintained Playwright PHP project.
7+
* It is not affiliated with or endorsed by Microsoft.
8+
*
9+
* (c) 2025-Present - Playwright PHP <https://github.com/playwright-php>
10+
*
11+
* For the full copyright and license information, please view the LICENSE
12+
* file that was distributed with this source code.
913
*/
1014

11-
namespace PlaywrightPHP\Mink\Driver;
15+
namespace Playwright\Mink\Driver;
1216

1317
use Behat\Mink\Driver\CoreDriver;
1418
use Behat\Mink\Exception\DriverException;
1519
use Behat\Mink\KeyModifier;
16-
use PlaywrightPHP\Browser\BrowserContextInterface;
17-
use PlaywrightPHP\Browser\BrowserInterface;
18-
use PlaywrightPHP\Frame\FrameLocatorInterface;
19-
use PlaywrightPHP\Locator\LocatorInterface;
20-
use PlaywrightPHP\Network\ResponseInterface;
21-
use PlaywrightPHP\Network\Route;
22-
use PlaywrightPHP\Page\PageInterface;
23-
use PlaywrightPHP\PlaywrightClient;
24-
use PlaywrightPHP\PlaywrightFactory;
20+
use Playwright\Browser\BrowserContextInterface;
21+
use Playwright\Browser\BrowserInterface;
22+
use Playwright\Frame\FrameLocatorInterface;
23+
use Playwright\Locator\LocatorInterface;
24+
use Playwright\Network\ResponseInterface;
25+
use Playwright\Network\Route;
26+
use Playwright\Page\PageInterface;
27+
use Playwright\PlaywrightClient;
28+
use Playwright\PlaywrightFactory;
2529

2630
/**
27-
* Playwright powered driver for Behat/Mink.
31+
* Playwright-powered driver for Behat/Mink.
2832
*
2933
* @author Simon André
3034
*/

tests/Config.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
declare(strict_types=1);
44

55
/*
6-
* This file is part of the Playwright PHP community project.
7-
* For the full copyright and license information, please view
8-
* the LICENSE file that was distributed with this source code.
6+
* This file is part of the community-maintained Playwright PHP project.
7+
* It is not affiliated with or endorsed by Microsoft.
8+
*
9+
* (c) 2025-Present - Playwright PHP <https://github.com/playwright-php>
10+
*
11+
* For the full copyright and license information, please view the LICENSE
12+
* file that was distributed with this source code.
913
*/
1014

11-
namespace PlaywrightPHP\Mink\Tests;
15+
namespace Playwright\Mink\Tests;
1216

1317
use Behat\Mink\Driver\DriverInterface;
1418
use Behat\Mink\Tests\Driver\AbstractConfig;
15-
use PlaywrightPHP\Mink\Driver\PlaywrightDriver;
19+
use Playwright\Mink\Driver\PlaywrightDriver;
1620

1721
/**
1822
* Configuration for the Mink driver tests suite.

0 commit comments

Comments
 (0)