public function TestDiscoveryTest::testTestInfoParser in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParser()
@covers ::getTestInfo @dataProvider infoParserProvider
File
- core/
tests/ Drupal/ Tests/ Core/ Test/ TestDiscoveryTest.php, line 25
Class
- TestDiscoveryTest
- @coversDefaultClass \Drupal\Core\Test\TestDiscovery @group Test
Namespace
Drupal\Tests\Core\TestCode
public function testTestInfoParser($expected, $classname, $doc_comment = NULL) {
$info = TestDiscovery::getTestInfo($classname, $doc_comment);
$this
->assertEquals($expected, $info);
}