Navigation Menu

Skip to content

Commit

Permalink
Keep only test for null value as path
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdriel authored and markstory committed Apr 9, 2015
1 parent 900fd3e commit 4a7344a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions lib/Cake/Test/Case/Utility/HashTest.php
Expand Up @@ -240,20 +240,11 @@ public function testGetInvalidPath() {
}

/**
* Test testGetNonStringPath()
* Test testGetNullPath()
*
* @return void
*/
public function testGetNonStringPath() {
$result = Hash::get(array(1.1 => 'one.one'), 1.1);
$this->assertEquals('one.one', $result);

$result = Hash::get(array('1' => array('1' => 'one.one')), 1.1);
$this->assertNull($result);

$result = Hash::get(array(true => 'true'), true);
$this->assertEquals('true', $result);

public function testGetNullPath() {
$result = Hash::get(array('one' => 'two'), null, '-');
$this->assertEquals('-', $result);
}
Expand Down

0 comments on commit 4a7344a

Please sign in to comment.