Class SimpleCommandLineParser

Description

Parser for command line arguments. Extracts the a specific test to run and engages XML reporting when necessary.

Located in /default_reporter.php (line 25)


	
			
Method Summary
 SimpleCommandLineParser __construct (string $arguments)
 string getHelpText ()
 string getTest ()
 string getTestCase ()
 boolean help ()
 boolean isXml ()
 boolean noSkips ()
Methods
Constructor __construct (line 40)

Parses raw command line arguments into object properties.

SimpleCommandLineParser __construct (string $arguments)
  • string $arguments: Raw commend line arguments.
getHelpText (line 107)

Returns plain-text help message for command line runner.

  • return: String help message
string getHelpText ()
getTest (line 67)

Run only this test.

  • return: Test name to run.
string getTest ()
getTestCase (line 75)

Run only this test suite.

  • return: Test class name to run.
string getTestCase ()
help (line 99)

Output should be a help message. Disabled during XML mode.

  • return: True if help message desired.
boolean help ()
isXml (line 83)

Output should be XML or not.

  • return: True if XML desired.
boolean isXml ()
noSkips (line 91)

Output should suppress skip messages.

  • return: True for no skips.
boolean noSkips ()

Documentation generated on Sun, 31 Oct 2010 16:31:11 -0500 by phpDocumentor 1.4.3