From 3028cc209514c5225b8101af7f74fff030241a39 Mon Sep 17 00:00:00 2001 From: borNfreee Date: Mon, 18 Feb 2019 22:42:41 +0300 Subject: [PATCH] Add tests to check binary coalesce is not mutated by null assign coalesce mutator --- tests/Mutator/Operator/AssignCoalesceTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/Mutator/Operator/AssignCoalesceTest.php b/tests/Mutator/Operator/AssignCoalesceTest.php index 4401689e2..929fc46c0 100644 --- a/tests/Mutator/Operator/AssignCoalesceTest.php +++ b/tests/Mutator/Operator/AssignCoalesceTest.php @@ -93,5 +93,14 @@ public function provideMutationCases(): \Generator $a['value'] = $var; PHP ]; + + yield 'Does not mutate coalesce binary operator' => [ + <<<'PHP' +