VarDumperTestTrait
Tags
Table of Contents
- assertDumpEquals() : mixed
- assertDumpMatchesFormat() : mixed
- getDump() : string|null
- setUpVarDumper() : void
- tearDownVarDumper() : void
- prepareExpectation() : string
Methods
assertDumpEquals()
public
assertDumpEquals(mixed $expected, mixed $data, int $filter[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $data : mixed
- $filter : int
- $message : string = ''
Return values
mixed —assertDumpMatchesFormat()
public
assertDumpMatchesFormat(mixed $expected, mixed $data, int $filter[, string $message = '' ]) : mixed
Parameters
- $expected : mixed
- $data : mixed
- $filter : int
- $message : string = ''
Return values
mixed —getDump()
protected
getDump(mixed $data[, mixed $key = null ], int $filter) : string|null
Parameters
- $data : mixed
- $key : mixed = null
- $filter : int
Return values
string|null —setUpVarDumper()
protected
setUpVarDumper(array<string|int, mixed> $casters[, int|null $flags = null ]) : void
Parameters
- $casters : array<string|int, mixed>
- $flags : int|null = null
Return values
void —tearDownVarDumper()
protected
tearDownVarDumper() : void
Tags
Return values
void —prepareExpectation()
private
prepareExpectation(mixed $expected, int $filter) : string
Parameters
- $expected : mixed
- $filter : int