Provides a CakePHP wrapper around PHPUnit.

Adds in CakePHP's fixtures and gives access to plugin, app and core test cases
package Baser.Console.Command

 Methods

Shows a list of available test cases and gives the option to run one of them

available() : void

Initialization method installs PHPUnit and loads all plugins

initialize() : void

Exceptions

\Exception

Main entry point to this shell

main() : void

Find the test case for the passed file. The file could itself be a test.

_mapFileToCase(string $file, string $category, boolean $throwOnMissingFile = true) : \array(type,

Parameters

$file

string

$category

string

$throwOnMissingFile

boolean

Exceptions

\Exception

Returns

\array(type,case)

For the given file, what category of test is it? returns app, core or the name of the plugin

_mapFileToCategory(string $file) : string

Parameters

$file

string

Returns

string

Parse the CLI options into an array CakeTestDispatcher can use.

_parseArgs() : array

Returns

arrayArray of params for CakeTestDispatcher

Runs the test case from $runnerArgs

_run(array $runnerArgs, array $options = array()) : void

Parameters

$runnerArgs

array

list of arguments as obtained from _parseArgs()

$options

array

list of options as constructed by _runnerOptions()

Displays a header for the shell

_welcome() : void