From 494b6345c16d0b65e082e7ced9ac7d878d047934 Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Sun, 5 Aug 2018 21:39:40 +0200 Subject: [PATCH] Add regression test for issue #3240. This proves that the bug reported in #3240 is also fixed in scope of this PR. --- .../Framework/Constraint/ArraySubsetTest.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/Framework/Constraint/ArraySubsetTest.php b/tests/Framework/Constraint/ArraySubsetTest.php index 4449b7e07ef..840d3de0133 100644 --- a/tests/Framework/Constraint/ArraySubsetTest.php +++ b/tests/Framework/Constraint/ArraySubsetTest.php @@ -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, + ], ]; }