File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ public function testDoesSomethingElseWith(): void
28
28
$ this ->assertTrue (true );
29
29
}
30
30
31
+ /**
32
+ * @dataProvider providerWithIndexedArray
33
+ */
34
+ public function testWithProviderWithIndexedArrayWith ($ value ): void
35
+ {
36
+ $ this ->assertTrue (true );
37
+ }
38
+
31
39
/**
32
40
* @dataProvider placeHolderprovider
33
41
* @testdox ... $value ...
@@ -45,6 +53,14 @@ public function provider()
45
53
];
46
54
}
47
55
56
+ public function providerWithIndexedArray ()
57
+ {
58
+ return [
59
+ ['first ' ],
60
+ ['second ' ],
61
+ ];
62
+ }
63
+
48
64
public function placeHolderprovider (): array
49
65
{
50
66
return [
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ DataProviderTestDox
17
17
✔ Does something with data set "two "
18
18
✔ Does something else with data set "one "
19
19
✔ Does something else with data set "two "
20
+ ✔ With provider with indexed array with data set #0
21
+ ✔ With provider with indexed array with data set #1
20
22
✔ .. . true .. .
21
23
✔ .. . 1 .. .
22
24
✔ .. . 1.0 .. .
@@ -29,4 +31,4 @@ DataProviderTestDox
29
31
30
32
Time: %s, Memory: %s
31
33
32
- OK (13 tests, 13 assertions)
34
+ OK (15 tests, 15 assertions)
You can’t perform that action at this time.
0 commit comments