Moodle  2.2.1
http://www.collinsharper.com
DetachedTestCase Class Reference

Public Member Functions

 DetachedTestCase ($command, $dry_command=false)
 getLabel ()
 run (&$reporter)
 getSize ()
_createParser (&$reporter)

Data Fields

 $_command
 $_dry_command
 $_size

Detailed Description

Definition at line 21 of file detached.php.


Member Function Documentation

& _createParser ( &$  reporter)

Creates the XML parser.

Parameters:
SimpleReporter$reporterTarget of test results.
Returns:
SimpleTestXmlListener XML reader. protected

Definition at line 92 of file detached.php.

Here is the caller graph for this function:

DetachedTestCase ( command,
dry_command = false 
)

Sets the location of the remote test.

Parameters:
string$commandTest script.
string$dry_commandScript for dry run. public

Definition at line 32 of file detached.php.

getLabel ( )

Accessor for the test name for subclasses.

Returns:
string Name of the test. public

Definition at line 43 of file detached.php.

getSize ( )

Accessor for the number of subtests.

Returns:
integer Number of test cases. public

Definition at line 71 of file detached.php.

Here is the call graph for this function:

run ( &$  reporter)

Runs the top level test for this class. Currently reads the data as a single chunk. I'll fix this once I have added iteration to the browser.

Parameters:
SimpleReporter$reporterTarget of test results.
Returns:
boolean True if no failures. public

Definition at line 55 of file detached.php.

Here is the call graph for this function:


Field Documentation

$_command

Definition at line 22 of file detached.php.

$_dry_command

Definition at line 23 of file detached.php.

$_size

Definition at line 24 of file detached.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations