function PhpUnitTestDiscoveryTest::setUp

Overrides KernelTestBase::setUp

File

core/tests/Drupal/KernelTests/Core/Test/PhpUnitTestDiscoveryTest.php, line 37

Class

PhpUnitTestDiscoveryTest
Tests equality of test discovery between run-tests.sh and PHPUnit CLI.

Namespace

Drupal\KernelTests\Core\Test

Code

public function setUp() : void {
    parent::setUp();
    $xmlOutputFile = $this->container
        ->getParameter('app.root') . DIRECTORY_SEPARATOR . 'test-list.xml';
    touch($xmlOutputFile);
    $this->xmlOutputFile = realpath($xmlOutputFile);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.