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

Breadcrumb

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

class Phpt

@psalm-immutable

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

Hierarchy

  • class \PHPUnit\Event\Code\Test
    • class \PHPUnit\Event\Code\Phpt extends \PHPUnit\Event\Code\Test

Expanded class hierarchy of Phpt

1 file declares its use of Phpt
PhptTestCase.php in vendor/phpunit/phpunit/src/Runner/PhptTestCase.php
1 string reference to 'Phpt'
PhptTestCase::getCoverageFiles in vendor/phpunit/phpunit/src/Runner/PhptTestCase.php

File

vendor/phpunit/phpunit/src/Event/Value/Test/Phpt.php, line 17

Namespace

PHPUnit\Event\Code
View source
final class Phpt extends Test {
    
    /**
     * @psalm-assert-if-true Phpt $this
     */
    public function isPhpt() : bool {
        return true;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function id() : string {
        return $this->file();
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function name() : string {
        return $this->file();
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
Phpt::id public function @psalm-return non-empty-string Overrides Test::id
Phpt::isPhpt public function @psalm-assert-if-true Phpt $this Overrides Test::isPhpt
Phpt::name public function @psalm-return non-empty-string Overrides Test::name
Test::$file private property @psalm-var non-empty-string
Test::file public function @psalm-return non-empty-string
Test::isTestMethod public function @psalm-assert-if-true TestMethod $this 1
Test::__construct public function @psalm-param non-empty-string $file 1
RSS feed
Powered by Drupal