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/TestSuite/Skipped.php \PHPUnit\Event\TestSuite\Skipped

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Test\Skipped implements \PHPUnit\Event\Event

Expanded class hierarchy of Skipped

12 files declare their use of Skipped
Collector.php in vendor/phpunit/phpunit/src/Runner/TestResult/Collector.php
JunitXmlLogger.php in vendor/phpunit/phpunit/src/Logging/JUnit/JunitXmlLogger.php
ResultCacheHandler.php in vendor/phpunit/phpunit/src/Runner/ResultCache/ResultCacheHandler.php
TeamCityLogger.php in vendor/phpunit/phpunit/src/Logging/TeamCity/TeamCityLogger.php
TestResult.php in vendor/phpunit/phpunit/src/Runner/TestResult/TestResult.php

... See full list

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/Test/Outcome/Skipped.php, line 23

Namespace

PHPUnit\Event\Test
View source
final class Skipped implements Event {
    private readonly Telemetry\Info $telemetryInfo;
    private readonly Code\Test $test;
    private readonly string $message;
    public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, string $message) {
        $this->telemetryInfo = $telemetryInfo;
        $this->test = $test;
        $this->message = $message;
    }
    public function telemetryInfo() : Telemetry\Info {
        return $this->telemetryInfo;
    }
    public function test() : Code\Test {
        return $this->test;
    }
    public function message() : string {
        return $this->message;
    }
    public function asString() : string {
        $message = $this->message;
        if (!empty($message)) {
            $message = PHP_EOL . $message;
        }
        return sprintf('Test Skipped (%s)%s', $this->test
            ->id(), $message);
    }

}

Members

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