function TestFileParserTest::testGetTestListFromFile
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testGetTestListFromFile()
- 10 core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testGetTestListFromFile()
- 11.x core/tests/Drupal/Tests/Core/Test/RunTests/TestFileParserTest.php \Drupal\Tests\Core\Test\RunTests\TestFileParserTest::testGetTestListFromFile()
@covers ::getTestListFromFile
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ RunTests/ TestFileParserTest.php, line 82
Class
- TestFileParserTest
- @coversDefaultClass \Drupal\Core\Test\RunTests\TestFileParser @group Test @group RunTests
Namespace
Drupal\Tests\Core\Test\RunTestsCode
public function testGetTestListFromFile() {
$parser = new TestFileParser();
$this->assertArrayEquals([
'Drupal\\Tests\\Core\\Test\\RunTests\\TestFileParserTest',
], $parser->getTestListFromFile(__FILE__));
// This WebTestBase test will eventually move, so we'll need to update it.
$this->assertArrayEquals([
'Drupal\\simpletest\\Tests\\TimeZoneTest',
], $parser->getTestListFromFile(__DIR__ . '/../../../../../../modules/simpletest/src/Tests/TimeZoneTest.php'));
// Not a test.
$this->assertEmpty($parser->getTestListFromFile(__DIR__ . '/../../../AssertHelperTrait.php'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.