PHPUnit_Util_TestDox_NamePrettifier
in package
Prettifies class and method names for use in TestDox documentation.
Tags
Table of Contents
- $prefix : string
- $strings : array<string|int, mixed>
- $suffix : string
- prettifyTestClass() : string
- Prettifies the name of a test class.
- prettifyTestMethod() : string
- Prettifies the name of a test method.
- setPrefix() : mixed
- Sets the prefix of test names.
- setSuffix() : mixed
- Sets the suffix of test names.
Properties
$prefix
protected
string
$prefix
= 'Test'
$strings
protected
array<string|int, mixed>
$strings
= array()
$suffix
protected
string
$suffix
= 'Test'
Methods
prettifyTestClass()
Prettifies the name of a test class.
public
prettifyTestClass(string $name) : string
Parameters
- $name : string
Return values
string —prettifyTestMethod()
Prettifies the name of a test method.
public
prettifyTestMethod(string $name) : string
Parameters
- $name : string
Return values
string —setPrefix()
Sets the prefix of test names.
public
setPrefix(string $prefix) : mixed
Parameters
- $prefix : string
Return values
mixed —setSuffix()
Sets the suffix of test names.
public
setSuffix(string $suffix) : mixed
Parameters
- $suffix : string