Class CakeTestSuiteDispatcher
CakeTestSuiteDispatcher handles web requests to the test suite and runs the correct action.
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
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() protected
Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.
-
_parseParams() protected
Parse URL params into a 'request' -
_runTestCase() protected
Runs a test case file. -
_testCaseList() protected
Generates a page containing the a list of test cases that could be run. -
date() public static
Returns formatted date string using static time This method is being used as formatter for created, modified and updated fields in Model::save()
-
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. -
time() public static
Sets a static timestamp
Method Detail
_checkPHPUnit() protected ¶
_checkPHPUnit( )
Checks that PHPUnit is installed. Will exit if it doesn't
_checkXdebug() protected ¶
_checkXdebug( )
Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.
_testCaseList() protected ¶
_testCaseList( )
Generates a page containing the a list of test cases that could be run.
date() 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
formatted date
loadTestFramework() public ¶
loadTestFramework( )
Checks for the existence of the test framework files
Returns
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