function PhptTestCase::__construct
Constructs a test case with the given filename.
@psalm-param non-empty-string $filename
Throws
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ PhptTestCase.php, line 90
Class
- PhptTestCase
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\RunnerCode
public function __construct(string $filename, ?AbstractPhpProcess $phpUtil = null) {
if (!is_file($filename)) {
throw new FileDoesNotExistException($filename);
}
$this->filename = $filename;
$this->phpUtil = $phpUtil ?: AbstractPhpProcess::factory();
}