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)


	
			
Variable Summary
 mixed $_case
 mixed $_no_skips
 mixed $_test
 mixed $_xml
Method Summary
 SimpleCommandLineParser SimpleCommandLineParser (string $arguments)
 string getTest ()
 string getTestCase ()
 boolean isXml ()
 boolean noSkips ()
Variables
mixed $_case = '' (line 30)
mixed $_no_skips = false (line 33)
mixed $_test = '' (line 31)
mixed $_to_property = array(
'case' => '_case', 'c' => '_case',
'test' => '_test', 't' => '_test',
'xml' => '_xml', 'x' => '_xml')
(line 26)
mixed $_xml = false (line 32)
Methods
Constructor SimpleCommandLineParser (line 39)

Parses raw command line arguments into object properties.

SimpleCommandLineParser SimpleCommandLineParser (string $arguments)
  • string $arguments: Raw commend line arguments.
getTest (line 65)

Run only this test.

  • return: Test name to run.
  • access: public
string getTest ()
getTestCase (line 74)

Run only this test suite.

  • return: Test class name to run.
  • access: public
string getTestCase ()
isXml (line 83)

Output should be XML or not.

  • return: True if XML desired.
  • access: public
boolean isXml ()
noSkips (line 92)

Output should suppress skip messages.

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

Documentation generated on Sun, 04 May 2008 09:21:25 -0500 by phpDocumentor 1.3.0