class Test

Test represents one result.

Constants

Prepared

Failed

Passed

Skipped

deprecated PREPARED

deprecated FAILED

deprecated PASSED

deprecated SKIPPED

Properties

$title
$message
$stdout
$stderr

Methods

__construct(string $file, string|null $title = null)

No description

string
getFile()

No description

array
getArguments()

No description

string
getSignature()

No description

int
getResult()

No description

bool
hasResult()

No description

float|null
getDuration()

Duration in seconds.

string
getOutput()

Full output (stdout + stderr)

withTitle(string $title)

No description

withArguments(array $args)

No description

withResult(int $result, string|null $message, float|null $duration = null)

No description

Details

at line 43
__construct(string $file, string|null $title = null)

No description

Parameters

string $file
string|null $title

at line 50
string getFile()

No description

Return Value

string

at line 59
array getArguments()

No description

Return Value

array

at line 65
string getSignature()

No description

Return Value

string

at line 73
int getResult()

No description

Return Value

int

at line 79
bool hasResult()

No description

Return Value

bool

at line 88
float|null getDuration()

Duration in seconds.

Return Value

float|null

at line 97
string getOutput()

Full output (stdout + stderr)

Return Value

string

at line 103
Test withTitle(string $title)

No description

Parameters

string $title

Return Value

Test

at line 118
Test withArguments(array $args)

No description

Parameters

array $args

Return Value

Test

at line 140
Test withResult(int $result, string|null $message, float|null $duration = null)

No description

Parameters

int $result
string|null $message
float|null $duration

Return Value

Test