You are here

public function TestFileParserTest::testParseContents in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testParseContents()
  2. 10 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 \Drupal\Core\Test\RunTests\TestFileParser @group Test @group RunTests

Namespace

Drupal\Tests\Core\Test\RunTests

Code

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));
}