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

Breadcrumb

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

function Loader::logging

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

File

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

Class

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

Namespace

PHPUnit\TextUI\XmlConfiguration

Code

private function logging(string $filename, DOMXPath $xpath) : Logging {
    $junit = null;
    $element = $this->element($xpath, 'logging/junit');
    if ($element) {
        $junit = new Junit(new File($this->toAbsolutePath($filename, (string) $this->getStringAttribute($element, 'outputFile'))));
    }
    $teamCity = null;
    $element = $this->element($xpath, 'logging/teamcity');
    if ($element) {
        $teamCity = new TeamCity(new File($this->toAbsolutePath($filename, (string) $this->getStringAttribute($element, 'outputFile'))));
    }
    $testDoxHtml = null;
    $element = $this->element($xpath, 'logging/testdoxHtml');
    if ($element) {
        $testDoxHtml = new TestDoxHtml(new File($this->toAbsolutePath($filename, (string) $this->getStringAttribute($element, 'outputFile'))));
    }
    $testDoxText = null;
    $element = $this->element($xpath, 'logging/testdoxText');
    if ($element) {
        $testDoxText = new TestDoxText(new File($this->toAbsolutePath($filename, (string) $this->getStringAttribute($element, 'outputFile'))));
    }
    return new Logging($junit, $teamCity, $testDoxHtml, $testDoxText);
}

API Navigation

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