function SchemaFinder::find
Throws
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ SchemaFinder.php, line 54
Class
- SchemaFinder
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\XmlConfigurationCode
public function find(string $version) : string {
if ($version === Version::series()) {
$filename = $this->path() . 'phpunit.xsd';
}
else {
$filename = $this->path() . 'schema/' . $version . '.xsd';
}
if (!is_file($filename)) {
throw new CannotFindSchemaException(sprintf('Schema for PHPUnit %s is not available', $version));
}
return $filename;
}