From 032c01d18cbb9961d544bc4b24f8f81120748112 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 1 May 2015 22:41:41 -0400 Subject: [PATCH] Add other key types to {*} test. --- lib/Cake/Test/Case/Utility/HashTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Cake/Test/Case/Utility/HashTest.php b/lib/Cake/Test/Case/Utility/HashTest.php index 0212885eb1a..419a7f71ae1 100644 --- a/lib/Cake/Test/Case/Utility/HashTest.php +++ b/lib/Cake/Test/Case/Utility/HashTest.php @@ -847,6 +847,8 @@ 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( @@ -854,6 +856,8 @@ public function testExtractWildcard() { 'Mr. Numeric', 'Mrs. Alphanumeric', 'Ms. Word', + 'Mr. Number', + 'Ms. Bool', ); $this->assertEquals($expected, $result); }