Permalink
Browse files

Add other key types to {*} test.

  • Loading branch information...
markstory committed May 2, 2015
1 parent 5e9d489 commit 032c01d18cbb9961d544bc4b24f8f81120748112
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Test/Case/Utility/HashTest.php
@@ -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);
}

0 comments on commit 032c01d

Please sign in to comment.