Class CakeTestSuiteCommand

Class to customize loading of test suites from CLI

PHPUnit_TextUI_Command
Extended by CakeTestSuiteCommand
Package: Cake\TestSuite
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/CakeTestSuiteCommand.php

Method Summary

  • __construct() public
    Construct method
  • getRunner() public
    Create a runner for the command.
  • Handler for customizing the FixtureManager class/
  • Handles output flag used to change printing on webrunner.
  • run() public
    Ugly hack to get around PHPUnit having a hard coded class name for the Runner. :(

Method Detail

__construct()source public

__construct( mixed $loader , array $params array() )

Construct method

Parameters

mixed $loader
The loader instance to use.
array $params optional array()
list of options to be used for this run

Throws

MissingTestLoaderException
When a loader class could not be found.

getRunner()source public

getRunner( mixed $loader )

Create a runner for the command.

Parameters

mixed $loader
The loader to be used for the test run.

Returns

CakeTestRunner

handleFixture()source public

handleFixture( string $class )

Handler for customizing the FixtureManager class/

Parameters

string $class
Name of the class that will be the fixture manager

handleReporter()source public

handleReporter( string $reporter )

Handles output flag used to change printing on webrunner.

Parameters

string $reporter
The reporter class to use.

run()source public

run( array $argv , boolean $exit true )

Ugly hack to get around PHPUnit having a hard coded class name for the Runner. :(

Parameters

array $argv
The command arguments
boolean $exit optional true
The exit mode.

© 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-CakeTestSuiteCommand.html