class CoversFunction
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Metadata/CoversFunction.php \PHPUnit\Metadata\CoversFunction
@psalm-immutable
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Hierarchy
- class \PHPUnit\Framework\Attributes\CoversFunction
Expanded class hierarchy of CoversFunction
1 file declares its use of CoversFunction
- AttributeParser.php in vendor/
phpunit/ phpunit/ src/ Metadata/ Parser/ AttributeParser.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Attributes/ CoversFunction.php, line 19
Namespace
PHPUnit\Framework\AttributesView source
final class CoversFunction {
/**
* @psalm-var non-empty-string
*/
private readonly string $functionName;
/**
* @psalm-param non-empty-string $functionName
*/
public function __construct(string $functionName) {
$this->functionName = $functionName;
}
/**
* @psalm-return non-empty-string
*/
public function functionName() : string {
return $this->functionName;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
CoversFunction::$functionName | private | property | @psalm-var non-empty-string |
CoversFunction::functionName | public | function | @psalm-return non-empty-string |
CoversFunction::__construct | public | function | @psalm-param non-empty-string $functionName |