class Validator
Same name in this branch
- 11.1.x vendor/ramsey/uuid/src/Rfc4122/Validator.php \Ramsey\Uuid\Rfc4122\Validator
- 11.1.x vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php \JsonSchema\Validator
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
@internal This class is not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\TextUI\XmlConfiguration\Validator
Expanded class hierarchy of Validator
6 string references to 'Validator'
- ArgumentPluginBase::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ argument/ ArgumentPluginBase.php - Provide a form to edit options for this plugin.
- Constraint::validatedBy in vendor/
symfony/ validator/ Constraint.php - Returns the name of the class that validates this constraint.
- ExpressionSyntax::validatedBy in vendor/
symfony/ validator/ Constraints/ ExpressionSyntax.php - Returns the name of the class that validates this constraint.
- ValidatorDataCollector::getName in vendor/
symfony/ validator/ DataCollector/ ValidatorDataCollector.php - Returns the name of the collector.
- views.data_types.schema.yml in core/
modules/ views/ config/ schema/ views.data_types.schema.yml - core/modules/views/config/schema/views.data_types.schema.yml
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Validator/ Validator.php, line 23
Namespace
PHPUnit\TextUI\XmlConfigurationView source
final class Validator {
public function validate(DOMDocument $document, string $xsdFilename) : ValidationResult {
$originalErrorHandling = libxml_use_internal_errors(true);
$document->schemaValidateSource(file_get_contents($xsdFilename));
$errors = libxml_get_errors();
libxml_clear_errors();
libxml_use_internal_errors($originalErrorHandling);
return ValidationResult::fromArray($errors);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Validator::validate | public | function |