function TestDiscoveryTest::testTestInfoParser
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParser()
- 8.9.x core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParser()
- 11.x 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 27
Class
- TestDiscoveryTest
- @coversDefaultClass \Drupal\Core\Test\TestDiscovery @group Test
Namespace
Drupal\Tests\Core\TestCode
public function testTestInfoParser($expected, $classname, $doc_comment = NULL) : void {
$info = TestDiscovery::getTestInfo($classname, $doc_comment);
$this->assertEquals($expected, $info);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.