Class CakeTestSuiteDispatcher

CakeTestSuiteDispatcher handles web requests to the test suite and runs the correct action.

Package: Cake\TestSuite
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Located at Cake/TestSuite/CakeTestSuiteDispatcher.php

Method Detail

__constructsource public

__construct( )

Constructor

_checkPHPUnitsource protected

_checkPHPUnit( )

Checks that PHPUnit is installed. Will exit if it doesn't

_checkXdebugsource protected

_checkXdebug( )

Checks for the xdebug extension required to do code coverage. Displays an error if xdebug isn't installed.

_parseParamssource protected

_parseParams( )

Parse URL params into a 'request'

_runTestCasesource protected

_runTestCase( )

Runs a test case file.

_testCaseListsource protected

_testCaseList( )

Generates a page containing the a list of test cases that could be run.

datesource 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

string
formatted date

dispatchsource public

dispatch( )

Runs the actions required by the URL parameters.

loadTestFrameworksource public

loadTestFramework( )

Checks for the existence of the test framework files

Returns

boolean
true if found, false otherwise

runsource public static

run( )

Static method to initialize the test runner, keeps global space clean

setParamssource public

setParams( array $params )

Sets the params, calling this will bypass the auto parameter parsing.

Parameters

array $params
Array of parameters for the dispatcher

timesource public static

time( boolean $reset false )

Sets a static timestamp

Parameters

boolean $reset optional false
to set new static timestamp.

Returns

integer
timestamp

Properties summary

$_Reportersource

protected static CakeBaseReporter

reporter instance used for the request

null

$_baseDirsource

protected string

Base dir of the request. Used for accessing assets.

$_baseUrlsource

protected string

Baseurl for the request

$_paramsParsedsource

protected boolean

boolean to set auto parsing of params.

false

$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–2016 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.
http://api.cakephp.org/2.7/class-CakeTestSuiteDispatcher.html