Browse Source

Add another flavor of test for the array_diff_key

jeffblack360 10 years ago
parent
commit
a3698f8bd3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/TestCase/BasicsTest.php

+ 6 - 0
tests/TestCase/BasicsTest.php

@@ -62,6 +62,12 @@ class BasicsTest extends TestCase
         $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);
+
     }
 
     /**