|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| setMockBaseClass ($mock_base) | |
| getMockBaseClass () | |
| useProxy ($proxy, $username=false, $password=false) | |
| getDefaultProxy () | |
| getDefaultProxyUsername () | |
| getDefaultProxyPassword () | |
Static Public Member Functions | |
| getVersion () | |
| ignore ($class) | |
| ignoreParentsIfIgnored ($classes) | |
| prefer (&$object) | |
| & | preferred ($classes) |
| isIgnored ($class) | |
| & | _getRegistry () |
| & | getContext () |
| _getDefaults () | |
Definition at line 27 of file simpletest.php.
| _getDefaults | ( | ) | [static] |
Constant default values.
Definition at line 234 of file simpletest.php.

| & _getRegistry | ( | ) | [static] |
Accessor for global registry of options.
Definition at line 205 of file simpletest.php.


| & getContext | ( | ) | [static] |
Accessor for the context of the current test run.
Definition at line 220 of file simpletest.php.

| getDefaultProxy | ( | ) |
Accessor for default proxy host.
Reimplemented in SimpleTestOptions.
Definition at line 174 of file simpletest.php.


Accessor for default proxy password.
Reimplemented in SimpleTestOptions.
Definition at line 194 of file simpletest.php.


Accessor for default proxy username.
Reimplemented in SimpleTestOptions.
Definition at line 184 of file simpletest.php.


| getMockBaseClass | ( | ) |
Reimplemented in SimpleTestOptions.
Definition at line 147 of file simpletest.php.

| getVersion | ( | ) | [static] |
Reads the SimpleTest version from the release file.
public
Reimplemented in SimpleTestOptions.
Definition at line 35 of file simpletest.php.
| ignore | ( | $ | class | ) | [static] |
Sets the name of a test case to ignore, usually because the class is an abstract case that should not be run. Once PHP4 is dropped this will disappear as a public method and "abstract" will rule.
| string | $class | Add a class to ignore. |
public
Reimplemented in SimpleTestOptions.
Definition at line 49 of file simpletest.php.


| ignoreParentsIfIgnored | ( | $ | classes | ) | [static] |
Scans the now complete ignore list, and adds all parent classes to the list. If a class is not a runnable test case, then it's parents wouldn't be either. This is syntactic sugar to cut down on ommissions of ignore()'s or missing abstract declarations. This cannot be done whilst loading classes wiithout forcing a particular order on the class declarations and the ignore() calls. It's just nice to have the ignore() calls at the top of the file before the actual declarations.
| array | $classes | Class names of interest. |
public
Definition at line 69 of file simpletest.php.

| isIgnored | ( | $ | class | ) | [static] |
Test to see if a test case is in the ignore list. Quite obviously the ignore list should be a separate object and will be one day. This method is internal to SimpleTest. Don't use it.
| string | $class | Class name to test. |
Reimplemented in SimpleTestOptions.
Definition at line 131 of file simpletest.php.


| prefer | ( | &$ | object | ) | [static] |
Puts the object to the global pool of 'preferred' objects which can be retrieved with SimpleTest :: preferred() method. Instances of the same class are overwritten.
| object | $object | Preferred object |
public
Definition at line 90 of file simpletest.php.

| & preferred | ( | $ | classes | ) | [static] |
Retrieves 'preferred' objects from global pool. Class filter can be applied in order to retrieve the object of the specific class
| array | string | $classes | Allowed classes or interfaces. |
public
Definition at line 105 of file simpletest.php.


| setMockBaseClass | ( | $ | mock_base | ) |
Reimplemented in SimpleTestOptions.
Definition at line 139 of file simpletest.php.

| useProxy | ( | $ | proxy, |
| $ | username = false, |
||
| $ | password = false |
||
| ) |
Sets proxy to use on all requests for when testing from behind a firewall. Set host to false to disable. This will take effect if there are no other proxy settings.
| string | $proxy | Proxy host as URL. |
| string | $username | Proxy username for authentication. |
| string | $password | Proxy password for authentication. public |
Reimplemented in SimpleTestOptions.
Definition at line 162 of file simpletest.php.
