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.
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;
});