File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed
tests/unit/Framework/Attributes Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -1234,9 +1234,9 @@ final protected function registerFailureType(string $classOrInterface): void
1234
1234
*/
1235
1235
final protected function runTest (): mixed
1236
1236
{
1237
- $ testArguments = array_merge ($ this ->data , array_values ($ this ->dependencyInput ));
1237
+ $ testArguments = array_merge ($ this ->data , array_values ($ this ->dependencyInput ));
1238
1238
$ positionalArgs = [];
1239
- $ namedArgs = [];
1239
+ $ namedArgs = [];
1240
1240
1241
1241
foreach ($ testArguments as $ key => $ value ) {
1242
1242
if (is_int ($ key )) {
Original file line number Diff line number Diff line change 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
+ */
3
10
namespace unit \Framework \Attributes ;
4
11
5
12
use PHPUnit \Framework \Attributes \DataProvider ;
8
15
9
16
class DependencyTest extends TestCase
10
17
{
18
+ public static function dataProvider (): array
19
+ {
20
+ return [
21
+ 'case 1 ' => [
22
+ 'example ' => '' ,
23
+ ],
24
+ ];
25
+ }
26
+
11
27
public function testOne (): void
12
28
{
13
29
$ this ->assertEmpty ([]);
@@ -19,13 +35,4 @@ public function testTwo(string $example): void
19
35
{
20
36
$ this ->assertEmpty ($ example );
21
37
}
22
-
23
- public static function dataProvider (): array
24
- {
25
- return [
26
- 'case 1 ' => [
27
- 'example ' => ''
28
- ]
29
- ];
30
- }
31
38
}
You can’t perform that action at this time.
0 commit comments