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

Breadcrumb

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

function Loader::source

1 call to Loader::source()
Loader::load in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Loader.php

File

vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Loader.php, line 249

Class

Loader
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\TextUI\XmlConfiguration

Code

private function source(string $filename, DOMXPath $xpath) : Source {
    $baseline = null;
    $restrictDeprecations = false;
    $restrictNotices = false;
    $restrictWarnings = false;
    $ignoreSuppressionOfDeprecations = false;
    $ignoreSuppressionOfPhpDeprecations = false;
    $ignoreSuppressionOfErrors = false;
    $ignoreSuppressionOfNotices = false;
    $ignoreSuppressionOfPhpNotices = false;
    $ignoreSuppressionOfWarnings = false;
    $ignoreSuppressionOfPhpWarnings = false;
    $element = $this->element($xpath, 'source');
    if ($element) {
        $baseline = $this->getStringAttribute($element, 'baseline');
        if ($baseline !== null) {
            $baseline = $this->toAbsolutePath($filename, $baseline);
        }
        $restrictDeprecations = $this->getBooleanAttribute($element, 'restrictDeprecations', false);
        $restrictNotices = $this->getBooleanAttribute($element, 'restrictNotices', false);
        $restrictWarnings = $this->getBooleanAttribute($element, 'restrictWarnings', false);
        $ignoreSuppressionOfDeprecations = $this->getBooleanAttribute($element, 'ignoreSuppressionOfDeprecations', false);
        $ignoreSuppressionOfPhpDeprecations = $this->getBooleanAttribute($element, 'ignoreSuppressionOfPhpDeprecations', false);
        $ignoreSuppressionOfErrors = $this->getBooleanAttribute($element, 'ignoreSuppressionOfErrors', false);
        $ignoreSuppressionOfNotices = $this->getBooleanAttribute($element, 'ignoreSuppressionOfNotices', false);
        $ignoreSuppressionOfPhpNotices = $this->getBooleanAttribute($element, 'ignoreSuppressionOfPhpNotices', false);
        $ignoreSuppressionOfWarnings = $this->getBooleanAttribute($element, 'ignoreSuppressionOfWarnings', false);
        $ignoreSuppressionOfPhpWarnings = $this->getBooleanAttribute($element, 'ignoreSuppressionOfPhpWarnings', false);
    }
    return new Source($baseline, false, $this->readFilterDirectories($filename, $xpath, 'source/include/directory'), $this->readFilterFiles($filename, $xpath, 'source/include/file'), $this->readFilterDirectories($filename, $xpath, 'source/exclude/directory'), $this->readFilterFiles($filename, $xpath, 'source/exclude/file'), $restrictDeprecations, $restrictNotices, $restrictWarnings, $ignoreSuppressionOfDeprecations, $ignoreSuppressionOfPhpDeprecations, $ignoreSuppressionOfErrors, $ignoreSuppressionOfNotices, $ignoreSuppressionOfPhpNotices, $ignoreSuppressionOfWarnings, $ignoreSuppressionOfPhpWarnings);
}

API Navigation

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