Update namespace for phpunit6 compat
authorColeman Watts <coleman@civicrm.org>
Mon, 16 Sep 2019 15:00:08 +0000 (11:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Sep 2019 03:11:24 +0000 (23:11 -0400)
tests/phpunit/api/v4/Entity/ConformanceTest.php
tests/phpunit/api/v4/UnitTestCase.php

index a038cbf82fc32761a845fb3cc06d50781ecb5bd4..c4c03a29987aef9a2e909af2d173e194816fe064 100644 (file)
@@ -39,7 +39,7 @@ class ConformanceTest extends UnitTestCase {
     $this->creationParamProvider = \Civi::container()->get('test.param_provider');
     parent::setUp();
     // calculateTaxAmount() for contribution triggers a deprecation notice
-    \PHPUnit_Framework_Error_Deprecated::$enabled = FALSE;
+    \PHPUnit\Framework\Error\Deprecated::$enabled = FALSE;
   }
 
   public function getEntities() {
index 185ad842c2dcd3a388ca6fb7e542880838697f9c..24a5ccc9e2d50304de854541409deb0d199dedf5 100644 (file)
@@ -9,7 +9,7 @@ use Civi\Test\TransactionalInterface;
 /**
  * @group headless
  */
-class UnitTestCase extends \PHPUnit_Framework_TestCase implements HeadlessInterface, TransactionalInterface {
+class UnitTestCase extends \PHPUnit\Framework\TestCase implements HeadlessInterface, TransactionalInterface {
 
   use TestDataLoaderTrait;