Skip to content

Commit

Permalink
Add regression test for issue sebastianbergmann#3240.
Browse files Browse the repository at this point in the history
This proves that the bug reported in sebastianbergmann#3240 is also fixed in scope of this PR.
  • Loading branch information
pfrenssen committed Aug 5, 2018
1 parent b74749b commit 494b634
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/Framework/Constraint/ArraySubsetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,26 @@ public static function evaluateDataProvider()
],
'strict' => true,
],
'regression test for issue 3240' => [
'expected' => true,
'subset' => [
[
'name' => 'amount',
'required' => true,
],
],
'other' => [
[
'name' => 'amount',
'required' => true,
],
[
'name' => 'accountNumber',
'required' => true,
],
],
'strict' => true,
],
];
}

Expand Down

0 comments on commit 494b634

Please sign in to comment.