From 1ee7925872a7ba1230b0e8b93f05f2415fbbde0b Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 26 May 2019 10:50:31 +1200 Subject: [PATCH] dev/core#980 update phpunit extends class to support later versions Per https://engineering.facile.it/blog/eng/phpunit-upgrade-namespace/ this works with phpunit 4.8 + Phpunit support for php versions is here https://phpunit.de/supported-versions.html Basically we need phpunit 7 to support php 7.3 - which we should be adding to our test suite now. It's hard to make a case that we still need to support phpunit 4.8 - let alone versions before that - 5.7 still covers php 5.6 which we need for some of our current branches. Unit testing on master would ideally switch up to a supported version of phpunit - 7 or 8 --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 67cda7b0d7..2c9b47add8 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -52,7 +52,7 @@ define('API_LATEST_VERSION', 3); * Common functions for unit tests * @package CiviCRM */ -class CiviUnitTestCase extends PHPUnit_Framework_TestCase { +class CiviUnitTestCase extends PHPUnit\Framework\TestCase { use \Civi\Test\Api3DocTrait; use \Civi\Test\GenericAssertionsTrait; -- 2.25.1