Skip to content

Commit

Permalink
Add test to show unsupported status of combining named arguments with…
Browse files Browse the repository at this point in the history
… depends
  • Loading branch information
jnoordsij committed Feb 20, 2023
1 parent ac028c8 commit f7e28c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/_files/DataProviderDependencyResultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static function providerMethod()
return [
[0, 2],
[1, 1],
['b' => 2, 'a' => 0],
];
}

Expand Down
10 changes: 8 additions & 2 deletions tests/end-to-end/generic/dataprovider-dependency-result.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

... 3 / 3 (100%)
...E 4 / 4 (100%)

Time: %s, Memory: %s

OK (3 tests, 5 assertions)
There was 1 error:

1) PHPUnit\TestFixture\DataProviderDependencyResultTest::testAdd with data set #2
Error: Cannot use positional argument after named argument during unpacking

ERRORS!
Tests: 4, Assertions: 5, Errors: 1.

0 comments on commit f7e28c4

Please sign in to comment.