Skip to content

Commit

Permalink
Add other key types to {*} test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 2, 2015
1 parent 5e9d489 commit 032c01d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Cake/Test/Case/Utility/HashTest.php
Expand Up @@ -847,13 +847,17 @@ public function testExtractWildcard() {
'2300000918020101' => array('name' => 'Mr. Numeric'),
'390000096AB30001' => array('name' => 'Mrs. Alphanumeric'),
'stuff' => array('name' => 'Ms. Word'),
123 => array('name' => 'Mr. Number'),
true => array('name' => 'Ms. Bool'),
);
$result = Hash::extract($data, '{*}.name');
$expected = array(
'Mr. Alphanumeric',
'Mr. Numeric',
'Mrs. Alphanumeric',
'Ms. Word',
'Mr. Number',
'Ms. Bool',
);
$this->assertEquals($expected, $result);
}
Expand Down

0 comments on commit 032c01d

Please sign in to comment.