FUEL CMS User Guide : Version 1.5.2


Fuel Tester Class

This class extends the Fuel_advanced_module class.

Function Reference [+]

$this->fuel->tester->run($tests)

Runs the tests and returns an array of result information that can be passed to a view file for display.

Returns

array

Parameters

(array) $tests The tests to run

$this->fuel->tester->get_tests(['$module'=NULL], [$folders=array()], ['$just_tests'=FALSE])

Returns an array of test(s) across one or more modules.

Returns

array

Parameters

(string) $module The module to retrieve the tests from (optional)
(string) $folders The folder name within the module. The default is 'tests
(boolean) $just_tests If TRUE, will just return just the paths to the tests

$this->fuel->tester->is_cli()

Returns whether the test is being run via Command Line Interface or not.

Returns

boolean