Class CakeTestSuiteDispatcher
CakeTestSuiteDispatcher handles web requests to the test suite and runs the correct action.
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/CakeTestSuiteDispatcher.php
Properties summary
- reporter instance used for the request
-
$_baseDir
protectedBase dir of the request. Used for accessing assets.string
-
$_baseUrl
protectedBaseurl for the requeststring
-
$_paramsParsed
protectedboolean to set auto parsing of params.boolean
-
$params
public'Request' parametersarray
Method Summary
- __construct() publicConstructor
- _checkPHPUnit() protectedChecks that PHPUnit is installed. Will exit if it doesn't
- _checkXdebug() protected
Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.
- _parseParams() protectedParse URL params into a 'request'
- _runTestCase() protectedRuns a test case file.
- _testCaseList() protectedGenerates a page containing the a list of test cases that could be run.
-
Returns formatted date string using static time This method is being used as formatter for created, modified and updated fields in Model::save()
- dispatch() publicRuns the actions required by the URL parameters.
- loadTestFramework() publicChecks for the existence of the test framework files
- Static method to initialize the test runner, keeps global space clean
- setParams() publicSets the params, calling this will bypass the auto parameter parsing.
- Sets a static timestamp
Method Detail
_checkPHPUnit()source protected
_checkPHPUnit( )
Checks that PHPUnit is installed. Will exit if it doesn't
_checkXdebug()source protected
_checkXdebug( )
Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.
_testCaseList()source protected
_testCaseList( )
Generates a page containing the a list of test cases that could be run.
date()source public static
date( string $format )
Returns formatted date string using static time This method is being used as formatter for created, modified and updated fields in Model::save()
Parameters
- string
$format
- format to be used.
Returns
stringformatted date
loadTestFramework()source public
loadTestFramework( )
Checks for the existence of the test framework files
Returns
booleantrue if found, false otherwise
run()source public static
run( )
Static method to initialize the test runner, keeps global space clean
setParams()source public
setParams( array $params )
Sets the params, calling this will bypass the auto parameter parsing.
Parameters
- array
$params
- Array of parameters for the dispatcher
time()source public static
time( boolean $reset false )
Sets a static timestamp
Parameters
- boolean
$reset
optional false - to set new static timestamp.
Returns
integertimestamp
Properties detail
$paramssource
public array
'Request' parameters
array( 'codeCoverage' => false, 'case' => null, 'core' => false, 'app' => false, 'plugin' => null, 'output' => 'html', 'show' => 'groups', 'show_passes' => false, 'filter' => false, 'fixture' => null )
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/2.10/class-CakeTestSuiteDispatcher.html