class NamePrettifier (View source)

Prettifies class and method names for use in TestDox documentation.

Properties

protected string $prefix
protected string $suffix
protected array $strings

Methods

string
prettifyTestClass(string $name)

Prettifies the name of a test class.

string
prettifyTestMethod(string $name)

Prettifies the name of a test method.

setPrefix(string $prefix)

Sets the prefix of test names.

setSuffix(string $suffix)

Sets the suffix of test names.

Details

string prettifyTestClass(string $name)

Prettifies the name of a test class.

Parameters

string $name

Return Value

string

string prettifyTestMethod(string $name)

Prettifies the name of a test method.

Parameters

string $name

Return Value

string

setPrefix(string $prefix)

Sets the prefix of test names.

Parameters

string $prefix

setSuffix(string $suffix)

Sets the suffix of test names.

Parameters

string $suffix