function TestFileParserTest::testParseContents
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testParseContents()
- 10 core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testParseContents()
- 11.x core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testParseContents()
@covers ::parseContents @dataProvider provideTestFileContents
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ RunTests/ TestFileParserTest.php, line 70
Class
- TestFileParserTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Test%21RunTests%21TestFileParser.php/class/TestFileParser/9" title="Parses class names from PHP files without loading them." class="local">\Drupal\Core\Test\RunTests\TestFileParser</a> @group Test @group RunTests
Namespace
Drupal\Tests\Core\Test\RunTestsCode
public function testParseContents($expected, $contents) {
$parser = new TestFileParser();
$ref_parse = new \ReflectionMethod($parser, 'parseContents');
$ref_parse->setAccessible(TRUE);
$this->assertSame($expected, $ref_parse->invoke($parser, $contents));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.