Test
class Test
Immutable value object representing a single test and its execution 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()
Returns combined stdout and stderr output.
withArguments(array $args)
No description
withResult(int $result, string|null $message, float|null $duration = null)
No description
Details
at line 45
__construct(string $file, string|null $title = null)
No description
at line 52
string
getFile()
No description
at line 61
array
getArguments()
No description
at line 67
string
getSignature()
No description
at line 76
int
getResult()
No description
at line 82
bool
hasResult()
No description
at line 91
float|null
getDuration()
Duration in seconds.
at line 100
string
getOutput()
Returns combined stdout and stderr output.
at line 106
Test
withTitle(string $title)
No description
at line 119
Test
withArguments(array $args)
No description
at line 139
Test
withResult(int $result, string|null $message, float|null $duration = null)
No description