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

Public Member Functions

 RemoteTestCase ($url, $dry_url=false)
 getLabel ()
 run (&$reporter)
_createBrowser ()
_createParser (&$reporter)
 getSize ()

Data Fields

 $_url
 $_dry_url
 $_size

Detailed Description

Definition at line 22 of file remote.php.


Member Function Documentation

Creates a new web browser object for fetching the XML report.

Returns:
SimpleBrowser New browser. protected

Definition at line 77 of file remote.php.

Here is the caller graph for this function:

& _createParser ( &$  reporter)

Creates the XML parser.

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

Definition at line 88 of file remote.php.

Here is the caller graph for this function:

getLabel ( )

Accessor for the test name for subclasses.

Returns:
string Name of the test. public

Definition at line 44 of file remote.php.

getSize ( )

Accessor for the number of subtests.

Returns:
integer Number of test cases. public

Definition at line 98 of file remote.php.

Here is the call graph for this function:

RemoteTestCase ( url,
dry_url = false 
)

Sets the location of the remote test.

Parameters:
string$urlTest location.
string$dry_urlLocation for dry run. public

Definition at line 33 of file remote.php.

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 56 of file remote.php.

Here is the call graph for this function:


Field Documentation

$_dry_url

Definition at line 24 of file remote.php.

$_size

Definition at line 25 of file remote.php.

$_url

Definition at line 23 of file remote.php.


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