Dumper
class Dumper
| internal |
Dumps PHP variables.
Properties
| static | $maxLength | ||
| static | $maxDepth | ||
| static | $dumpDir | ||
| static | $maxPathSegments | ||
| static | $pathSeparator |
Methods
Converts a variable to a compact single-line string representation.
Converts a variable to a pretty-printed PHP representation.
Formats an exception with its message, trace, and diff command into a human-readable string.
Saves assertion dump to the output directory (configured by $dumpDir).
Details
at line 30
static string
toLine(mixed $var)
Converts a variable to a compact single-line string representation.
at line 102
static string
toPhp(mixed $var)
Converts a variable to a pretty-printed PHP representation.
at line 292
static string
dumpException(Throwable $e)
Formats an exception with its message, trace, and diff command into a human-readable string.
at line 395
static string
saveOutput(string $testFile, mixed $content, string $suffix = '')
Saves assertion dump to the output directory (configured by $dumpDir).
at line 409
static string
color(string $color = '', string|null $s = null)
deprecated
deprecated
No description
at line 418
static string
removeColors(string $s)
deprecated
deprecated
No description