Public Member Functions | |
useProxy ($proxy, $username=false, $password=false) | |
getDefaultProxy () | |
getDefaultProxyUsername () | |
getDefaultProxyPassword () | |
Static Public Member Functions | |
ignore ($class) | |
ignoreParentsIfIgnored ($classes) | |
prefer (&$object) | |
& | preferred ($classes) |
isIgnored ($class) | |
& | _getRegistry () |
& | getContext () |
_getDefaults () |
Definition at line 20 of file simpletest.php.
SimpleTest::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. |
Definition at line 30 of file simpletest.php.
References _getRegistry().
Referenced by ignoreParentsIfIgnored(), and SimpleFileLoader::selectRunnableTests().
SimpleTest::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. |
Definition at line 50 of file simpletest.php.
References _getRegistry(), ignore(), and isIgnored().
Referenced by SimpleFileLoader::createSuiteFromClasses().
SimpleTest::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 |
Definition at line 71 of file simpletest.php.
References _getRegistry().
& SimpleTest::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. |
Definition at line 86 of file simpletest.php.
References _getRegistry().
Referenced by DefaultReporter::DefaultReporter().
SimpleTest::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. |
Definition at line 112 of file simpletest.php.
References _getRegistry().
Referenced by SimpleFileLoader::createSuiteFromClasses(), and ignoreParentsIfIgnored().
SimpleTest::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 |
Definition at line 127 of file simpletest.php.
References _getRegistry().
SimpleTest::getDefaultProxy | ( | ) |
Accessor for default proxy host.
Definition at line 139 of file simpletest.php.
References _getRegistry().
SimpleTest::getDefaultProxyUsername | ( | ) |
Accessor for default proxy username.
Definition at line 149 of file simpletest.php.
References _getRegistry().
SimpleTest::getDefaultProxyPassword | ( | ) |
Accessor for default proxy password.
Definition at line 159 of file simpletest.php.
References _getRegistry().
& SimpleTest::_getRegistry | ( | ) | [static] |
Accessor for global registry of options.
Definition at line 170 of file simpletest.php.
References _getDefaults().
Referenced by getDefaultProxy(), getDefaultProxyPassword(), getDefaultProxyUsername(), ignore(), ignoreParentsIfIgnored(), isIgnored(), prefer(), preferred(), and useProxy().
& SimpleTest::getContext | ( | ) | [static] |
Accessor for the context of the current test run.
Definition at line 185 of file simpletest.php.
Referenced by SimpleErrorTrappingInvoker::_createErrorQueue(), SimpleExceptionTrappingInvoker::invoke(), SimpleTestCase::run(), and SimpleTestErrorHandler().
SimpleTest::_getDefaults | ( | ) | [static] |
Constant default values.
Definition at line 199 of file simpletest.php.
Referenced by _getRegistry().