Class CakeTestSuiteDispatcher
CakeTestSuiteDispatcher handles web requests to the test suite and runs the correct action.
Package: Cake\TestSuite
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/TestSuite/CakeTestSuiteDispatcher.php
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/TestSuite/CakeTestSuiteDispatcher.php
Properties summary
-
$_Reporter
protected staticreporter instance used for the request -
$_baseDir
protectedstring
Base dir of the request. Used for accessing assets. -
$_baseUrl
protectedstring
Baseurl for the request -
$_paramsParsed
protectedboolean
boolean to set auto parsing of params. -
$params
publicarray
'Request' parameters
Method Summary
-
__construct() public
constructor -
_checkPHPUnit() protected
Checks that PHPUnit is installed. Will exit if it doesn't -
_checkXdebug() public
Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.
-
_parseParams() public
Parse url params into a 'request' -
_runTestCase() public
Runs a test case file. -
_testCaseList() public
Generates a page containing the a list of test cases that could be run. -
dispatch() public
Runs the actions required by the URL parameters. -
loadTestFramework() public
Checks for the existence of the test framework files -
run() public static
Static method to initialize the test runner, keeps global space clean -
setParams() public
Sets the params, calling this will bypass the auto parameter parsing.
Method Detail
_checkPHPUnit() protected ¶
_checkPHPUnit( )
Checks that PHPUnit is installed. Will exit if it doesn't
_checkXdebug() public ¶
_checkXdebug( )
Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.
_testCaseList() public ¶
_testCaseList( )
Generates a page containing the a list of test cases that could be run.
loadTestFramework() public ¶
loadTestFramework( )
Checks for the existence of the test framework files
Returns
boolean
true if found, false otherwise
true if found, false otherwise
setParams() public ¶
setParams( array $params )
Sets the params, calling this will bypass the auto parameter parsing.
Parameters
- array $params
- Array of parameters for the dispatcher