<?php
-/**
- * @file
- * Contains \Drupal\Tests\simpletest\Unit\TestInfoParsingTest.
- */
-
namespace Drupal\Tests\simpletest\Unit;
use Composer\Autoload\ClassLoader;
* @coversDefaultClass \Drupal\simpletest\TestDiscovery
* @group simpletest
*/
-class TestInfoParsingTest extends UnitTestCase {
+class TestDiscoveryTest extends UnitTestCase {
/**
* @covers ::getTestInfo
$tests[] = [
// Expected result.
[
- 'name' => 'Drupal\Tests\simpletest\Unit\TestInfoParsingTest',
+ 'name' => 'Drupal\Tests\simpletest\Unit\TestDiscoveryTest',
'group' => 'simpletest',
'description' => 'Tests \Drupal\simpletest\TestDiscovery.',
'type' => 'PHPUnit-Unit',
],
// Classname.
- 'Drupal\Tests\simpletest\Unit\TestInfoParsingTest',
+ 'Drupal\Tests\simpletest\Unit\TestDiscoveryTest',
];
// A core unit test.
], $result);
}
-}
-
-class TestTestDiscovery extends TestDiscovery {
-
- /**
- * @var \Drupal\Core\Extension\Extension[]
- */
- protected $extensions = [];
-
- public function setExtensions(array $extensions) {
- $this->extensions = $extensions;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getExtensions() {
- return $this->extensions;
- }
-
/**
* @covers ::getPhpunitTestSuite
* @dataProvider providerTestGetPhpunitTestSuite
}
+class TestTestDiscovery extends TestDiscovery {
+
+ /**
+ * @var \Drupal\Core\Extension\Extension[]
+ */
+ protected $extensions = [];
+
+ public function setExtensions(array $extensions) {
+ $this->extensions = $extensions;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function getExtensions() {
+ return $this->extensions;
+ }
+
+}
+
namespace Drupal\simpletest\Tests;
use Drupal\simpletest\WebTestBase;