You are here

public function TestDiscoveryTest::testTestInfoParser in Drupal 9

Same name and namespace in other branches
  1. 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\Test

Code

public function testTestInfoParser($expected, $classname, $doc_comment = NULL) {
  $info = TestDiscovery::getTestInfo($classname, $doc_comment);
  $this
    ->assertEquals($expected, $info);
}