Class TestsuiteShell
Provides a CakePHP wrapper around PHPUnit. Adds in CakePHP's fixtures and gives access to plugin, app and core test cases
- AppShell
- TestsuiteShell
Package: Cake\Console\Command
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/TestsuiteShell.php
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/TestsuiteShell.php
Properties summary
-
$_dispatcher
protectedCakeTestDispatcher
Dispatcher object for the run.
Method Summary
-
_parseArgs() protected
Parse the CLI options into an array CakeTestDispatcher can use. -
_run() protected
Runs the test case from $runnerArgs -
_runnerOptions() protected
Converts the options passed to the shell as options for the PHPUnit cli runner -
available() public
Shows a list of available test cases and gives the option to run one of them -
getOptionParser() public
get the option parser for the test suite. -
initialize() public
Initialization method installs PHPUnit and loads all plugins -
main() public
Main entry point to this shell
Method Detail
_parseArgs() protected ¶
_parseArgs( )
Parse the CLI options into an array CakeTestDispatcher can use.
Returns
array
Array of params for CakeTestDispatcher
Array of params for CakeTestDispatcher
_run() protected ¶
_run( array $runnerArgs , array $options = array() )
Runs the test case from $runnerArgs
Parameters
- array $runnerArgs
- list of arguments as obtained from _parseArgs()
- array $options optional array()
- list of options as constructed by _runnerOptions()
_runnerOptions() protected ¶
_runnerOptions( )
Converts the options passed to the shell as options for the PHPUnit cli runner
Returns
array
Array of params for CakeTestDispatcher
Array of params for CakeTestDispatcher
available() public ¶
available( )
Shows a list of available test cases and gives the option to run one of them
initialize() public ¶
initialize( )
Initialization method installs PHPUnit and loads all plugins
Throws
Exception