From a3698f8bd367b6104256631716761801e3f2a503 Mon Sep 17 00:00:00 2001 From: jeffblack360 Date: Wed, 28 Oct 2015 19:07:21 -0500 Subject: [PATCH] Add another flavor of test for the array_diff_key --- tests/TestCase/BasicsTest.php | 6 ++++++ 1 file changed, 6 insertions(+) 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); + } /**