Bootstrapping - AugustusKling/RudimentaryPhpTest GitHub Wiki
Create a subclass of RudimentaryPhpTest_Bootstrap to provide default options for your project. The class is also responsible for setting up [loggers](Log Listener) and provide a defined environment for the [tests](Test Class).
class Boot extends RudimentaryPhpTest_Bootstrap {
public function overrideDefaultOptions(){
return array(
RudimentaryPhpTest::OPTION_TESTBASE => realpath('/path/to/your/tests')
);
}
}
This class for bootstrapping would only set a default location for your tests. More info is available in the definition of RudimentaryPhpTest_Bootstrap.
Supply the bootstrap parameter on the command line when calling the test framework to make it aware of your bootstrapping implementation. It will then find, instantiate and use your implementation automatically.