From 9bd327201d3b375c24f233cb0eae8ace54abdc08 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Sat, 9 Nov 2019 07:16:07 +0000 Subject: [PATCH] Update unit test to match the output of the CRM_Utils_String function --- tests/phpunit/CRM/Utils/StringTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Utils/StringTest.php b/tests/phpunit/CRM/Utils/StringTest.php index 76dd0ba51f..7fad15bb2a 100644 --- a/tests/phpunit/CRM/Utils/StringTest.php +++ b/tests/phpunit/CRM/Utils/StringTest.php @@ -405,10 +405,9 @@ class CRM_Utils_StringTest extends CiviUnitTestCase { * @param string $str * An unsafe serialized value. * @dataProvider getBadSerializeExamples - * @expectedException \Exception */ public function testBadSerializeExamples($str) { - CRM_Utils_String::unserialize($str); + $this->assertFalse(CRM_Utils_String::unserialize($str)); } } -- 2.25.1