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

Breadcrumb

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

class Skipped

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/TestStatus/Skipped.php \PHPUnit\Framework\TestStatus\Skipped
  2. 11.1.x vendor/phpunit/phpunit/src/Event/Events/Test/Outcome/Skipped.php \PHPUnit\Event\Test\Skipped

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\TestSuite\Skipped implements \PHPUnit\Event\Event

Expanded class hierarchy of Skipped

4 files declare their use of Skipped
Collector.php in vendor/phpunit/phpunit/src/Runner/TestResult/Collector.php
DispatchingEmitter.php in vendor/phpunit/phpunit/src/Event/Emitter/DispatchingEmitter.php
TestResult.php in vendor/phpunit/phpunit/src/Runner/TestResult/TestResult.php
TestSuiteSkippedSubscriber.php in vendor/phpunit/phpunit/src/Runner/TestResult/Subscriber/TestSuiteSkippedSubscriber.php
4 string references to 'Skipped'
JunitXmlLogger::handleIncompleteOrSkipped in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
JunitXmlLogger::testSuiteFinished in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
Skipped::asString in vendor/phpunit/phpunit/src/Framework/TestStatus/Skipped.php
SummaryPrinter::print in vendor/phpunit/phpunit/src/TextUI/Output/SummaryPrinter.php

File

vendor/phpunit/phpunit/src/Event/Events/TestSuite/Skipped.php, line 21

Namespace

PHPUnit\Event\TestSuite
View source
final class Skipped implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    private readonly TestSuite $testSuite;
    private readonly string $message;
    public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite, string $message) {
        $this->telemetryInfo = $telemetryInfo;
        $this->testSuite = $testSuite;
        $this->message = $message;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    public function testSuite() : TestSuite {
        return $this->testSuite;
    }
    public function message() : string {
        return $this->message;
    }
    public function asString() : string {
        return sprintf('Test Suite Skipped (%s, %s)', $this->testSuite
            ->name(), $this->message);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
Skipped::$message private property
Skipped::$telemetryInfo private property
Skipped::$testSuite private property
Skipped::asString public function Overrides Event::asString
Skipped::message public function
Skipped::telemetryInfo public function Overrides Event::telemetryInfo
Skipped::testSuite public function
Skipped::__construct public function
RSS feed
Powered by Drupal