PHP Class SimpleCommandLineParser, simpletest

@package SimpleTest
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $arguments ) Parses raw command line arguments into object properties.
doCodeCoverage ( ) : boolean Should code coverage be run or not.
getExcludes ( ) : array Array of excluded folders.
getHelpText ( ) : string Returns plain-text help message for command line runner.
getTest ( ) : string Run only this test.
getTestCase ( ) : string Run only this test suite.
help ( ) : boolean Output should be a help message. Disabled during XML mode.
isJUnit ( ) : boolean Output should be JUnit or not.
isXml ( ) : boolean Output should be XML or not.
noSkips ( ) : boolean Output should suppress skip messages.

Method Details

__construct() public méthode

Parses raw command line arguments into object properties.
public __construct ( string $arguments )
$arguments string Raw commend line arguments.

doCodeCoverage() public méthode

@return boolean True if code coverage should be run.
public doCodeCoverage ( ) : boolean
Résultat boolean

getExcludes() public méthode

@return array Array of strings to exclude from code coverage.
public getExcludes ( ) : array
Résultat array

getHelpText() public méthode

Returns plain-text help message for command line runner.
public getHelpText ( ) : string
Résultat string String help message

getTest() public méthode

Run only this test.
public getTest ( ) : string
Résultat string Test name to run.

getTestCase() public méthode

Run only this test suite.
public getTestCase ( ) : string
Résultat string Test class name to run.

help() public méthode

Output should be a help message. Disabled during XML mode.
public help ( ) : boolean
Résultat boolean True if help message desired.

isJUnit() public méthode

Output should be JUnit or not.
public isJUnit ( ) : boolean
Résultat boolean True if JUnit desired.

isXml() public méthode

Output should be XML or not.
public isXml ( ) : boolean
Résultat boolean True if XML desired.

noSkips() public méthode

Output should suppress skip messages.
public noSkips ( ) : boolean
Résultat boolean True for no skips.