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

Breadcrumb

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

class TestSize

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Framework/TestSize/TestSize.php \PHPUnit\Framework\TestSize\TestSize

@psalm-immutable

Hierarchy

  • class \SebastianBergmann\CodeCoverage\Test\TestSize\TestSize

Expanded class hierarchy of TestSize

3 files declare their use of TestSize
CodeCoverage.php in vendor/phpunit/php-code-coverage/src/CodeCoverage.php
CodeCoverage.php in vendor/phpunit/phpunit/src/Runner/CodeCoverage.php
PhptTestCase.php in vendor/phpunit/phpunit/src/Runner/PhptTestCase.php

File

vendor/phpunit/php-code-coverage/src/TestSize/TestSize.php, line 15

Namespace

SebastianBergmann\CodeCoverage\Test\TestSize
View source
abstract class TestSize {
    public static function unknown() : self {
        return new Unknown();
    }
    public static function small() : self {
        return new Small();
    }
    public static function medium() : self {
        return new Medium();
    }
    public static function large() : self {
        return new Large();
    }
    
    /**
     * @psalm-assert-if-true Known $this
     */
    public function isKnown() : bool {
        return false;
    }
    
    /**
     * @psalm-assert-if-true Unknown $this
     */
    public function isUnknown() : bool {
        return false;
    }
    
    /**
     * @psalm-assert-if-true Small $this
     */
    public function isSmall() : bool {
        return false;
    }
    
    /**
     * @psalm-assert-if-true Medium $this
     */
    public function isMedium() : bool {
        return false;
    }
    
    /**
     * @psalm-assert-if-true Large $this
     */
    public function isLarge() : bool {
        return false;
    }
    public abstract function asString() : string;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
TestSize::asString abstract public function 4
TestSize::isKnown public function @psalm-assert-if-true Known $this 1
TestSize::isLarge public function @psalm-assert-if-true Large $this 1
TestSize::isMedium public function @psalm-assert-if-true Medium $this 1
TestSize::isSmall public function @psalm-assert-if-true Small $this 1
TestSize::isUnknown public function @psalm-assert-if-true Unknown $this 1
TestSize::large public static function
TestSize::medium public static function
TestSize::small public static function
TestSize::unknown public static function
RSS feed
Powered by Drupal