From e65f9c8f009c90044e39255a5bb6726aa2cf7c01 Mon Sep 17 00:00:00 2001 From: Eileen Date: Fri, 3 Jan 2014 19:24:21 +1300 Subject: [PATCH] tests/phpunit/CRM/Utils/StringTest.php enotice compliance --- tests/phpunit/CRM/Utils/StringTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/CRM/Utils/StringTest.php b/tests/phpunit/CRM/Utils/StringTest.php index 29e39102d3..b89c6bfff5 100644 --- a/tests/phpunit/CRM/Utils/StringTest.php +++ b/tests/phpunit/CRM/Utils/StringTest.php @@ -1,10 +1,6 @@ 'String Test', @@ -80,8 +76,8 @@ class CRM_Utils_StringTest extends CiviUnitTestCase { $actual = array(); CRM_Utils_String::extractName($case['full_name'], $actual); $this->assertEquals($actual['first_name'], $case['first_name']); - $this->assertEquals($actual['last_name'], $case['last_name']); - $this->assertEquals($actual['middle_name'], $case['middle_name']); + $this->assertEquals(CRM_Utils_Array::value('last_name', $actual), CRM_Utils_Array::value('last_name', $case)); + $this->assertEquals(CRM_Utils_Array::value('middle_name', $actual), CRM_Utils_Array::value('middle_name', $case)); } } -- 2.25.1