You are here

protected function InfoParserUnitTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php \Drupal\Tests\Core\Extension\InfoParserUnitTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php, line 33

Class

InfoParserUnitTest
Tests InfoParser class and exception.

Namespace

Drupal\Tests\Core\Extension

Code

protected function setUp() {
  parent::setUp();

  // Use a fake DRUPAL_ROOT.
  $this->infoParser = new InfoParser('vfs:/');
}