Skip to content

Commit b93f3c1

Browse files
committed
bot: fix cs [skip ci]
1 parent 89c1112 commit b93f3c1

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

src/Browser/Test/BootstrappedExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function __construct(
6464
private LegacyExtension $extension,
6565
) {
6666
}
67+
6768
public function notify(TestStartedEvent $event): void
6869
{
6970
$this->extension->executeBeforeTest($event->test()->name());

src/Browser/Test/BrowserExtension.php

+6-10
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,18 @@
1919
use PHPUnit\Runner\BeforeTestHook;
2020
use PHPUnit\Runner\Extension\Extension;
2121

22-
if (interface_exists(Extension::class)) {
22+
if (\interface_exists(Extension::class)) {
2323
/**
2424
* PHPUnit >= 10.
2525
*/
2626
final class BrowserExtension extends BootstrappedExtension implements Extension
27-
{}
27+
{
28+
}
2829
} else {
2930
/**
3031
* PHPUnit < 10.
3132
*/
32-
final class BrowserExtension extends LegacyExtension implements
33-
BeforeFirstTestHook,
34-
BeforeTestHook,
35-
AfterTestHook,
36-
AfterLastTestHook,
37-
AfterTestErrorHook,
38-
AfterTestFailureHook
39-
{}
33+
final class BrowserExtension extends LegacyExtension implements BeforeFirstTestHook, BeforeTestHook, AfterTestHook, AfterLastTestHook, AfterTestErrorHook, AfterTestFailureHook
34+
{
35+
}
4036
}

tests/NormalizationTest.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,35 @@ final class NormalizationTest extends TestCase
1919
{
2020
public static function namesProvider(): \Generator
2121
{
22-
$baseTemplate = 'error_' . __METHOD__;
22+
$baseTemplate = 'error_'.__METHOD__;
2323

2424
yield 'test name without datasets' => [
2525
'test name' => __METHOD__,
26-
'expected output' => \strtr($baseTemplate, '\\:', '-_') . '__0',
26+
'expected output' => \strtr($baseTemplate, '\\:', '-_').'__0',
2727
];
2828

29-
$datasetTemplate = $baseTemplate . '__data-set-%s__0';
29+
$datasetTemplate = $baseTemplate.'__data-set-%s__0';
3030

31-
$alphaTemplate = sprintf($datasetTemplate, 'test-set', '');
31+
$alphaTemplate = \sprintf($datasetTemplate, 'test-set', '');
3232
$alphaOutput = \strtr($alphaTemplate, '\\:', '-_');
3333

34-
$numericTemplate = sprintf($datasetTemplate, '0', '');
34+
$numericTemplate = \sprintf($datasetTemplate, '0', '');
3535
$numericOutput = \strtr($numericTemplate, '\\:', '-_');
3636

3737
yield 'phpunit 10 alpha' => [
38-
'test name' => __METHOD__ . ' with data set "test set"',
38+
'test name' => __METHOD__.' with data set "test set"',
3939
'expected output' => $alphaOutput,
4040
];
4141
yield 'phpunit 10 numeric' => [
42-
'test name' => __METHOD__ . ' with data set #0',
42+
'test name' => __METHOD__.' with data set #0',
4343
'expected output' => $numericOutput,
4444
];
4545
yield 'legacy alpha' => [
46-
'test name' => __METHOD__ . ' with data set "test set" (test set)',
46+
'test name' => __METHOD__.' with data set "test set" (test set)',
4747
'expected output' => $alphaOutput,
4848
];
4949
yield 'legacy numeric' => [
50-
'test name' => __METHOD__ . ' with data set #0 (test set)',
50+
'test name' => __METHOD__.' with data set #0 (test set)',
5151
'expected output' => $numericOutput,
5252
];
5353
}

0 commit comments

Comments
 (0)