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.0 API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 2.0
      • 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
        • Auth
    • Core
    • Error
    • I18n
    • Log
      • Engine
    • Model
      • Behavior
      • Datasource
        • Database
        • Session
    • Network
      • Email
      • Http
    • Routing
      • Route
    • TestSuite
      • Coverage
      • Fixture
      • Reporter
    • Utility
    • View
      • Helper

Classes

  • AclShell
  • ApiShell
  • BakeShell
  • CommandListShell
  • ConsoleShell
  • I18nShell
  • SchemaShell
  • TestsuiteShell
  • UpgradeShell

Class TestsuiteShell

Provides a CakePHP wrapper around PHPUnit. Adds in CakePHP's fixtures and gives access to plugin, app and core test cases

AppShell
Extended by TestsuiteShell
Package: Cake\Console\Command
Copyright: Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/TestsuiteShell.php

Properties summary

  • $_dispatcher protected
    CakeTestDispatcher
    Dispatcher object for the run.

Method Summary

  • _parseArgs() protected
    Parse the CLI options into an array CakeTestDispatcher can use.
  • _run() protected
    Runs the test case from $runnerArgs
  • _runnerOptions() protected
    Converts the options passed to the shell as options for the PHPUnit cli runner
  • available() public
    Shows a list of available test cases and gives the option to run one of them
  • getOptionParser() public
    get the option parser for the test suite.
  • initialize() public
    Initialization method installs PHPUnit and loads all plugins
  • main() public
    Main entry point to this shell

Method Detail

_parseArgs() protected ¶

_parseArgs( )

Parse the CLI options into an array CakeTestDispatcher can use.

Returns
array
Array of params for CakeTestDispatcher

_run() protected ¶

_run( array $runnerArgs , array $options = array() )

Runs the test case from $runnerArgs

Parameters
array $runnerArgs
list of arguments as obtained from _parseArgs()
array $options optional array()
list of options as constructed by _runnerOptions()

_runnerOptions() protected ¶

_runnerOptions( )

Converts the options passed to the shell as options for the PHPUnit cli runner

Returns
array
Array of params for CakeTestDispatcher

available() public ¶

available( )

Shows a list of available test cases and gives the option to run one of them

getOptionParser() public ¶

getOptionParser( )

get the option parser for the test suite.

initialize() public ¶

initialize( )

Initialization method installs PHPUnit and loads all plugins

Throws
Exception

main() public ¶

main( )

Main entry point to this shell

Properties detail

$_dispatcher ¶

protected CakeTestDispatcher

Dispatcher object for the run.

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