package updates

This commit is contained in:
2018-12-19 23:27:43 -06:00
parent aa1da4d4fb
commit 1ffd21369f
1181 changed files with 51194 additions and 11046 deletions

View File

@@ -374,4 +374,27 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
return $stub;
}
protected function getCoverageForCrashParsing()
{
$filter = new Filter;
$filter->addFileToWhitelist(TEST_FILES_PATH . 'Crash.php');
// This is a file with invalid syntax, so it isn't executed.
return new CodeCoverage(
$this->setUpXdebugStubForCrashParsing(),
$filter
);
}
protected function setUpXdebugStubForCrashParsing()
{
$stub = $this->createMock(Driver::class);
$stub->expects($this->any())
->method('stop')
->will($this->returnValue([]));
return $stub;
}
}