Overview
Class for running suites of unit tests.
Expects a directory structure like this ...
Test/
Solar.php -- Test_Solar
Solar/
Base.php -- Test_Solar_Base
Uri.php -- Test_Solar_Uri
Uri/
Action.php -- Test_Solar_Uri_Action
Configuration Keys
log: A Solar_Log dependency for logging test results.test_config: The config param to use for Solar::start() when running tests in the separate PHP environment.verbose: Whether or not to show verbose output.stop_on_fail: Stop running tests at the first failure.
Constants
None.
Public Properties
The Solar_Test_Suite class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Test_Suite class.
You can also view the list of all public, protected, and private methods.
-
__construct() -
Constructor.
-
__destruct() -
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
-
dump() -
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
-
loadTests() -
Finds tests and loads them into the plan.
-
locale() -
Looks up class-specific locale strings based on a key.
-
run() -
Runs the test suite (or the sub-test series) and logs as it goes.
-
setVerbose() -
Turns 'verbose' mode on and off.