class Dumper

Dumps PHP variables.

Properties

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

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, $content, string $suffix = '')

Dumps data to folder 'output'.

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

Applies color to string.

static string
removeColors(string $s)

No description

Details

at line 31
static string toLine(mixed $var)

Dumps information about a variable in readable format.

Parameters

mixed $var

variable to dump

Return Value

string

at line 113
static string toPhp(mixed $var)

Dumps variable in PHP format.

Parameters

mixed $var

variable to dump

Return Value

string

at line 247
static string dumpException(Throwable $e)

internal  
 

No description

Parameters

Throwable $e

Return Value

string

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

internal  
 

Dumps data to folder 'output'.

Parameters

string $testFile
$content
string $suffix

Return Value

string

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

Applies color to string.

Parameters

string $color
string $s

Return Value

string

at line 375
static string removeColors(string $s)

No description

Parameters

string $s

Return Value

string