class TestDox
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/Attributes/TestDox.php \PHPUnit\Framework\Attributes\TestDox
- 11.1.x vendor/phpunit/phpunit/src/Metadata/TestDox.php \PHPUnit\Metadata\TestDox
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Event\Code\TestDox
Expanded class hierarchy of TestDox
3 string references to 'TestDox'
- AnnotationParser::forClass in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AnnotationParser.php - @psalm-param class-string $className
- AnnotationParser::forMethod in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AnnotationParser.php - @psalm-param class-string $className @psalm-param non-empty-string $methodName
- Loader::phpunit in vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Loader.php
File
-
vendor/
phpunit/ phpunit/ src/ Event/ Value/ Test/ TestDox.php, line 17
Namespace
PHPUnit\Event\CodeView source
final class TestDox {
private readonly string $prettifiedClassName;
private readonly string $prettifiedMethodName;
private readonly string $prettifiedAndColorizedMethodName;
public function __construct(string $prettifiedClassName, string $prettifiedMethodName, string $prettifiedAndColorizedMethodName) {
$this->prettifiedClassName = $prettifiedClassName;
$this->prettifiedMethodName = $prettifiedMethodName;
$this->prettifiedAndColorizedMethodName = $prettifiedAndColorizedMethodName;
}
public function prettifiedClassName() : string {
return $this->prettifiedClassName;
}
public function prettifiedMethodName(bool $colorize = false) : string {
if ($colorize) {
return $this->prettifiedAndColorizedMethodName;
}
return $this->prettifiedMethodName;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestDox::$prettifiedAndColorizedMethodName | private | property | |
TestDox::$prettifiedClassName | private | property | |
TestDox::$prettifiedMethodName | private | property | |
TestDox::prettifiedClassName | public | function | |
TestDox::prettifiedMethodName | public | function | |
TestDox::__construct | public | function |