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

Breadcrumb

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

class Success

Same name in this branch
  1. 11.1.x vendor/phpunit/php-code-coverage/src/TestStatus/Success.php \SebastianBergmann\CodeCoverage\Test\TestStatus\Success

@psalm-immutable

@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

Hierarchy

  • class \PHPUnit\Framework\TestStatus\TestStatus
    • class \PHPUnit\Framework\TestStatus\Known extends \PHPUnit\Framework\TestStatus\TestStatus
      • class \PHPUnit\Framework\TestStatus\Success extends \PHPUnit\Framework\TestStatus\Known

Expanded class hierarchy of Success

9 string references to 'Success'
DbUpdateController::results in core/modules/system/src/Controller/DbUpdateController.php
Displays results of the update script with any accompanying errors.
File::createPopoverContentForTest in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderSourceWithBranchCoverage in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
File::renderSourceWithPathCoverage in vendor/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php
HtmlRenderer::reduce in vendor/phpunit/phpunit/src/Logging/TestDox/HtmlRenderer.php
@psalm-return array<string, 'success'|'defect'>

... See full list

File

vendor/phpunit/phpunit/src/Framework/TestStatus/Success.php, line 19

Namespace

PHPUnit\Framework\TestStatus
View source
final class Success extends Known {
    
    /**
     * @psalm-assert-if-true Success $this
     */
    public function isSuccess() : bool {
        return true;
    }
    public function asInt() : int {
        return 0;
    }
    public function asString() : string {
        return 'success';
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
Known::isKnown public function @psalm-assert-if-true Known $this Overrides TestStatus::isKnown
Success::asInt public function Overrides TestStatus::asInt
Success::asString public function Overrides TestStatus::asString
Success::isSuccess public function @psalm-assert-if-true Success $this Overrides TestStatus::isSuccess
TestStatus::$message private property
TestStatus::deprecation public static function
TestStatus::error public static function
TestStatus::failure public static function
TestStatus::from public static function
TestStatus::incomplete public static function
TestStatus::isDeprecation public function @psalm-assert-if-true Deprecation $this 1
TestStatus::isError public function @psalm-assert-if-true Error $this 1
TestStatus::isFailure public function @psalm-assert-if-true Failure $this 1
TestStatus::isIncomplete public function @psalm-assert-if-true Incomplete $this 1
TestStatus::isMoreImportantThan public function
TestStatus::isNotice public function @psalm-assert-if-true Notice $this 1
TestStatus::isRisky public function @psalm-assert-if-true Risky $this 1
TestStatus::isSkipped public function @psalm-assert-if-true Skipped $this 1
TestStatus::isUnknown public function @psalm-assert-if-true Unknown $this 1
TestStatus::isWarning public function @psalm-assert-if-true Warning $this 1
TestStatus::message public function
TestStatus::notice public static function
TestStatus::risky public static function
TestStatus::skipped public static function
TestStatus::success public static function
TestStatus::unknown public static function
TestStatus::warning public static function
TestStatus::__construct private function
RSS feed
Powered by Drupal