Skip to content
Permalink
Browse files

Add another flavor of test for the array_diff_key

  • Loading branch information...
jeffblack360 committed Oct 29, 2015
1 parent 5909354 commit a3698f8bd367b6104256631716761801e3f2a503
Showing with 6 additions and 0 deletions.
  1. +6 −0 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);
}
/**

0 comments on commit a3698f8

Please sign in to comment.
You can’t perform that action at this time.