Skip to content

Commit de95669

Browse files
marac19901990sebastianbergmann
authored andcommitted
cs-fixer
1 parent a64452d commit de95669

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

src/Framework/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,9 +1234,9 @@ final protected function registerFailureType(string $classOrInterface): void
12341234
*/
12351235
final protected function runTest(): mixed
12361236
{
1237-
$testArguments = array_merge($this->data, array_values($this->dependencyInput));
1237+
$testArguments = array_merge($this->data, array_values($this->dependencyInput));
12381238
$positionalArgs = [];
1239-
$namedArgs = [];
1239+
$namedArgs = [];
12401240

12411241
foreach ($testArguments as $key => $value) {
12421242
if (is_int($key)) {
Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
<?php
2-
1+
<?php declare(strict_types=1);
2+
/*
3+
* This file is part of PHPUnit.
4+
*
5+
* (c) Sebastian Bergmann <sebastian@phpunit.de>
6+
*
7+
* For the full copyright and license information, please view the LICENSE
8+
* file that was distributed with this source code.
9+
*/
310
namespace unit\Framework\Attributes;
411

512
use PHPUnit\Framework\Attributes\DataProvider;
@@ -8,6 +15,15 @@
815

916
class DependencyTest extends TestCase
1017
{
18+
public static function dataProvider(): array
19+
{
20+
return [
21+
'case 1' => [
22+
'example' => '',
23+
],
24+
];
25+
}
26+
1127
public function testOne(): void
1228
{
1329
$this->assertEmpty([]);
@@ -19,13 +35,4 @@ public function testTwo(string $example): void
1935
{
2036
$this->assertEmpty($example);
2137
}
22-
23-
public static function dataProvider(): array
24-
{
25-
return [
26-
'case 1' => [
27-
'example' => ''
28-
]
29-
];
30-
}
3138
}

0 commit comments

Comments
 (0)