CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (GitHub)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • Slack
    • Paid Support
CakePHP

C CakePHP 2.6 API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 2.6
      • 4.2
      • 4.1
      • 4.0
      • 3.9
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Packages

  • Cake
    • Cache
      • Engine
    • Configure
    • Console
      • Command
        • Task
    • Controller
      • Component
        • Acl
        • Auth
    • Core
    • Error
    • Event
    • I18n
    • Log
      • Engine
    • Model
      • Behavior
      • Datasource
        • Database
        • Session
      • Validator
    • Network
      • Email
      • Http
    • Routing
      • Filter
      • Route
    • TestSuite
      • Coverage
      • Fixture
      • Reporter
    • Utility
    • View
      • Helper

Classes

  • CakeTestCase
  • CakeTestLoader
  • CakeTestRunner
  • CakeTestSuite
  • CakeTestSuiteCommand
  • CakeTestSuiteDispatcher
  • ControllerTestCase
  • ControllerTestDispatcher
  • InterceptContentHelper

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
Location: Cake/TestSuite/CakeTestSuiteDispatcher.php

Properties summary

  • $_Reporter protected static
    CakeBaseReporter
    reporter instance used for the request
  • $_baseDir protected
    string
    Base dir of the request. Used for accessing assets.
  • $_baseUrl protected
    string
    Baseurl for the request
  • $_paramsParsed protected
    boolean
    boolean to set auto parsing of params.
  • $params public
    array
    '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

__construct() public ¶

__construct( )

Constructor

_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.

_parseParams() protected ¶

_parseParams( )

Parse URL params into a 'request'

_runTestCase() protected ¶

_runTestCase( )

Runs a test case file.

_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
string
formatted date

dispatch() public ¶

dispatch( )

Runs the actions required by the URL parameters.

loadTestFramework() public ¶

loadTestFramework( )

Checks for the existence of the test framework files

Returns
boolean
true if found, false otherwise

run() public static ¶

run( )

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

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

time() public static ¶

time( boolean $reset = false )

Sets a static timestamp

Parameters
boolean $reset optional false
to set new static timestamp.
Returns
integer
timestamp

Properties detail

$_Reporter ¶

protected static CakeBaseReporter

reporter instance used for the request

null

$_baseDir ¶

protected string

Base dir of the request. Used for accessing assets.

$_baseUrl ¶

protected string

Baseurl for the request

$_paramsParsed ¶

protected boolean

boolean to set auto parsing of params.

false

$params ¶

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
)
OpenHub
Rackspace
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (GitHub)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • Slack
  • Paid Support

Generated using CakePHP API Docs