function TestDiscoveryTest::testTestInfoParser

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParser()
  2. 8.9.x core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParser()
  3. 10 core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php \Drupal\Tests\Core\Test\TestDiscoveryTest::testTestInfoParser()

@legacy-covers ::getTestInfo

Attributes

#[DataProvider('infoParserProvider')]

File

core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php, line 32

Class

TestDiscoveryTest
Unit tests for TestDiscovery.

Namespace

Drupal\Tests\Core\Test

Code

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.