Documentation

TestMethod extends Test
in package

Read onlyYes
FinalYes
Tags
immutable
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

Table of Contents

Properties

$className  : class-string
$line  : int
$metadata  : MetadataCollection
$methodName  : non-empty-string
$testData  : TestDataCollection
$testDox  : TestDox

Methods

__construct()  : mixed
className()  : class-string
file()  : non-empty-string
id()  : non-empty-string
isPhpt()  : bool
isTestMethod()  : true
line()  : int
metadata()  : MetadataCollection
methodName()  : non-empty-string
name()  : non-empty-string
nameWithClass()  : non-empty-string
testData()  : TestDataCollection
testDox()  : TestDox

Properties

$methodName

private non-empty-string $methodName

Methods

className()

public className() : class-string
Return values
class-string

file()

public file() : non-empty-string
Return values
non-empty-string

id()

public id() : non-empty-string
Return values
non-empty-string

isPhpt()

public isPhpt() : bool
Tags
phpstan-assert-if-true

Phpt $this

Return values
bool

isTestMethod()

public isTestMethod() : true
Return values
true

methodName()

public methodName() : non-empty-string
Return values
non-empty-string

name()

public name() : non-empty-string
Return values
non-empty-string

nameWithClass()

public nameWithClass() : non-empty-string
Return values
non-empty-string
On this page

Search results