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

Breadcrumb

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

class Logging

Same name in this branch
  1. 11.1.x vendor/open-telemetry/api/Behavior/Internal/Logging.php \OpenTelemetry\API\Behavior\Internal\Logging

@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

@psalm-immutable

Hierarchy

  • class \PHPUnit\TextUI\XmlConfiguration\Logging\Logging

Expanded class hierarchy of Logging

4 files declare their use of Logging
Configuration.php in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Configuration.php
DefaultConfiguration.php in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/DefaultConfiguration.php
LoadedFromFileConfiguration.php in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/LoadedFromFileConfiguration.php
Loader.php in vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Loader.php
5 string references to 'Logging'
Cron::invokeCronHandlers in core/lib/Drupal/Core/Cron.php
Invokes any cron handlers implementing hook_cron.
CronForm::buildForm in core/modules/system/src/Form/CronForm.php
Form constructor.
SearchController::view in core/modules/search/src/Controller/SearchController.php
Creates a render array for the search page.
SearchPageListBuilder::buildForm in core/modules/search/src/SearchPageListBuilder.php
Form constructor.
SearchPageListBuilder::buildForm in core/modules/search/src/SearchPageListBuilder.php
Form constructor.

File

vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/Logging/Logging.php, line 23

Namespace

PHPUnit\TextUI\XmlConfiguration\Logging
View source
final class Logging {
    private readonly ?Junit $junit;
    private readonly ?TeamCity $teamCity;
    private readonly ?TestDoxHtml $testDoxHtml;
    private readonly ?TestDoxText $testDoxText;
    public function __construct(?Junit $junit, ?TeamCity $teamCity, ?TestDoxHtml $testDoxHtml, ?TestDoxText $testDoxText) {
        $this->junit = $junit;
        $this->teamCity = $teamCity;
        $this->testDoxHtml = $testDoxHtml;
        $this->testDoxText = $testDoxText;
    }
    public function hasJunit() : bool {
        return $this->junit !== null;
    }
    
    /**
     * @throws Exception
     */
    public function junit() : Junit {
        if ($this->junit === null) {
            throw new Exception('Logger "JUnit XML" is not configured');
        }
        return $this->junit;
    }
    public function hasTeamCity() : bool {
        return $this->teamCity !== null;
    }
    
    /**
     * @throws Exception
     */
    public function teamCity() : TeamCity {
        if ($this->teamCity === null) {
            throw new Exception('Logger "Team City" is not configured');
        }
        return $this->teamCity;
    }
    public function hasTestDoxHtml() : bool {
        return $this->testDoxHtml !== null;
    }
    
    /**
     * @throws Exception
     */
    public function testDoxHtml() : TestDoxHtml {
        if ($this->testDoxHtml === null) {
            throw new Exception('Logger "TestDox HTML" is not configured');
        }
        return $this->testDoxHtml;
    }
    public function hasTestDoxText() : bool {
        return $this->testDoxText !== null;
    }
    
    /**
     * @throws Exception
     */
    public function testDoxText() : TestDoxText {
        if ($this->testDoxText === null) {
            throw new Exception('Logger "TestDox Text" is not configured');
        }
        return $this->testDoxText;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Logging::$junit private property
Logging::$teamCity private property
Logging::$testDoxHtml private property
Logging::$testDoxText private property
Logging::hasJunit public function
Logging::hasTeamCity public function
Logging::hasTestDoxHtml public function
Logging::hasTestDoxText public function
Logging::junit public function
Logging::teamCity public function
Logging::testDoxHtml public function
Logging::testDoxText public function
Logging::__construct public function

API Navigation

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