Update unit test to match the output of the CRM_Utils_String function
authorJenkins <jenkins@test-1.civicrm.org>
Sat, 9 Nov 2019 07:16:07 +0000 (07:16 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 20 Nov 2019 21:24:22 +0000 (08:24 +1100)
tests/phpunit/CRM/Utils/StringTest.php

index 76dd0ba51fdd08ba494e742fc3cea6a758b561b3..7fad15bb2aab1a8156ffedaeaa864b6faf06fe7c 100644 (file)
@@ -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));
   }
 
 }