PHP Class SimpleCommandLineParser, simpletest

@package SimpleTest
Show file Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method 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 method

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

doCodeCoverage() public method

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

getExcludes() public method

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

getHelpText() public method

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

getTest() public method

Run only this test.
public getTest ( ) : string
return string Test name to run.

getTestCase() public method

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

help() public method

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

isJUnit() public method

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

isXml() public method

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

noSkips() public method

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