diff --git a/tests/TestCase/BasicsTest.php b/tests/TestCase/BasicsTest.php index 32837f36fd7..b26c5274f7f 100644 --- a/tests/TestCase/BasicsTest.php +++ b/tests/TestCase/BasicsTest.php @@ -62,6 +62,12 @@ public function testArrayDiffKey() $two = ['minYear' => null, 'maxYear' => null, 'separator' => '-', 'interval' => 1, 'monthNames' => true]; $result = array_diff_key($one, $two); $this->assertSame([], $result); + + $one = ['minYear' => null, 'maxYear' => null, 'separator' => '-', 'interval' => 1, 'monthNames' => true]; + $two = []; + $result = array_diff_key($one, $two); + $this->assertSame($one, $result); + } /**