Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SchemaFinder.php

function SchemaFinder::find

Throws

CannotFindSchemaException

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\XmlConfiguration

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal