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, $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 34
static string toLine(mixed $var)

Dumps information about a variable in readable format.

Parameters

mixed $var

variable to dump

Return Value

string

at line 111
static string toPhp(mixed $var)

Dumps variable in PHP format.

Parameters

mixed $var

variable to dump

Return Value

string

at line 302
static string dumpException(Throwable $e)

No description

Parameters

Throwable $e

Return Value

string

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

Dumps data to folder 'output'.

Parameters

string $testFile
$content
string $suffix

Return Value

string

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

Applies color to string.

Parameters

string $color
string|null $s

Return Value

string

at line 437
static string removeColors(string $s)

No description

Parameters

string $s

Return Value

string