Extends
lithium\util\Collection
Get the collection of tests
Parameters
- string|array $params
- array $options
Returns
lithium\util\CollectionSource
public function tests($params = array(), array $options = array()) {
$tests = new Collection();
foreach ($this->_data as $test) {
if (!class_exists($test)) {
throw new Exception("Test case `{$test}` not found.");
}
$tests[] = new $test;
}
return $tests;
}