From fe5fa0549385daf00832371df52c006a00e5e7cc Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Wed, 5 Jun 2019 07:48:12 +1000 Subject: [PATCH] Fix running of CRM_Utils_MoneyTest on PHPUnit6+ --- tests/phpunit/CRM/Utils/MoneyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Utils/MoneyTest.php b/tests/phpunit/CRM/Utils/MoneyTest.php index bd343e5171..6d3044cd4a 100644 --- a/tests/phpunit/CRM/Utils/MoneyTest.php +++ b/tests/phpunit/CRM/Utils/MoneyTest.php @@ -82,7 +82,7 @@ class CRM_Utils_MoneyTest extends CiviUnitTestCase { * Test that passing an invalid currency throws an error */ public function testInvalidCurrency() { - $this->setExpectedException(CRM_Core_Exception::class, 'Invalid currency "NOT_A_CURRENCY"'); + $this->expectException(\CRM_Core_Exception::class, 'Invalid currency "NOT_A_CURRENCY"'); CRM_Utils_Money::format(4.00, 'NOT_A_CURRENCY'); } -- 2.25.1