class Helpers

Test helpers.

Methods

static void
purge(string $dir)

Purges directory.

static string
findCommonDirectory(array $paths)

Find common directory for given paths. All files or directories must exist.

static array
parseDocComment(string $s)

Parse the first docblock encountered in the provided string.

static string
errorTypeToString(int $type)

No description

static string
escapeArg(string $s)

Escape a string to be used as a shell argument.

static string
prepareTempDir(string $path)

No description

Details

at line 21
static void purge(string $dir)

Purges directory.

Parameters

string $dir

Return Value

void

at line 46
static string findCommonDirectory(array $paths)

internal  
 

Find common directory for given paths. All files or directories must exist.

Parameters

array $paths

Return Value

string

Empty when not found. Slash and back slash chars normalized to DIRECTORY_SEPARATOR.

at line 77
static array parseDocComment(string $s)

internal  
 

Parse the first docblock encountered in the provided string.

Parameters

string $s

Return Value

array

at line 106
static string errorTypeToString(int $type)

internal  
 

No description

Parameters

int $type

Return Value

string

at line 123
static string escapeArg(string $s)

internal  
 

Escape a string to be used as a shell argument.

Parameters

string $s

Return Value

string

at line 138
static string prepareTempDir(string $path)

internal  
 

No description

Parameters

string $path

Return Value

string