class Dumper

internal  
 

Dumps PHP variables.

Properties

static $maxLength
static $maxDepth
static $dumpDir
static $maxPathSegments
static $pathSeparator

Methods

static string
toLine(mixed $var)

Dumps information about a variable in readable format.

static string
toPhp(mixed $var)

Dumps variable in PHP format.

static string
dumpException(Throwable $e)

No description

static string
saveOutput(string $testFile, mixed $content, string $suffix = '')

Dumps data to folder 'output'.

static string
color(string $color = '', string|null $s = null)

Applies color to string.

static string
removeColors(string $s)

No description

Details

at line 29
static string toLine(mixed $var)

Dumps information about a variable in readable format.

Parameters

mixed $var

Return Value

string

at line 104
static string toPhp(mixed $var)

Dumps variable in PHP format.

Parameters

mixed $var

Return Value

string

at line 290
static string dumpException(Throwable $e)

No description

Parameters

Throwable $e

Return Value

string

at line 393
static string saveOutput(string $testFile, mixed $content, string $suffix = '')

Dumps data to folder 'output'.

Parameters

string $testFile
mixed $content
string $suffix

Return Value

string

at line 409
static string color(string $color = '', string|null $s = null)

Applies color to string.

Parameters

string $color
string|null $s

Return Value

string

at line 425
static string removeColors(string $s)

No description

Parameters

string $s

Return Value

string