Security update for Core, with self-updated composer
[yaffs-website] / web / core / tests / Drupal / Tests / Component / DrupalComponentTest.php
index 7e746d7379a6e97983953b366799c595d3aee9ac..03d39d3f1540a634a6a1be004e907aa2fe8303ce 100644 (file)
@@ -2,15 +2,15 @@
 
 namespace Drupal\Tests\Component;
 
-use Drupal\Tests\UnitTestCase;
 use org\bovigo\vfs\vfsStream;
+use PHPUnit\Framework\TestCase;
 
 /**
  * General tests for \Drupal\Component that can't go anywhere else.
  *
  * @group Component
  */
-class DrupalComponentTest extends UnitTestCase {
+class DrupalComponentTest extends TestCase {
 
   /**
    * Tests that classes in Component do not use any Core class.
@@ -64,7 +64,7 @@ class DrupalComponentTest extends UnitTestCase {
   protected function assertNoCoreUsage($class_path) {
     $contents = file_get_contents($class_path);
     preg_match_all('/^.*Drupal\\\Core.*$/m', $contents, $matches);
-    $matches = array_filter($matches[0], function($line) {
+    $matches = array_filter($matches[0], function ($line) {
       // Filter references to @see as they don't really matter.
       return strpos($line, '@see') === FALSE;
     });