function StubTestSuiteBaseTrait::addTestFiles
Same name in this branch
- 8.9.x core/tests/Drupal/TestTools/PhpUnitCompatibility/PhpUnit6/StubTestSuiteBaseTrait.php \Drupal\TestTools\PhpUnitCompatibility\PhpUnit6\StubTestSuiteBaseTrait::addTestFiles()
File
-
core/
tests/ Drupal/ TestTools/ PhpUnitCompatibility/ PhpUnit7/ StubTestSuiteBaseTrait.php, line 13
Class
- StubTestSuiteBaseTrait
- Makes Drupal's test API forward compatible with multiple versions of PHPUnit.
Namespace
Drupal\TestTools\PhpUnitCompatibility\PhpUnit7Code
public function addTestFiles($filenames) : void {
// We stub addTestFiles() because the parent implementation can't deal with
// vfsStream-based filesystems due to an error in
// stream_resolve_include_path(). See
// https://github.com/mikey179/vfsStream/issues/5 Here we just store the
// test file being added in $this->testFiles.
$this->testFiles = array_merge($this->testFiles, $filenames);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.