Skip to content

Commit

Permalink
Add another flavor of test for the array_diff_key
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffblack360 committed Oct 29, 2015
1 parent 5909354 commit a3698f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/TestCase/BasicsTest.php
Expand Up @@ -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);

}

/**
Expand Down

0 comments on commit a3698f8

Please sign in to comment.