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. (http://cakefoundation.org)
License: MIT License
Located at Cake/TestSuite/CakeTestSuiteCommand.php

Method Detail

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

getRunnersource public

getRunner( mixed $loader )

Create a runner for the command.

Parameters

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

Returns

CakeTestRunner
CakeTestRunner

handleFixturesource public

handleFixture( string $class )

Handler for customizing the FixtureManager class/

Parameters

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

handleReportersource public

handleReporter( string $reporter )

Handles output flag used to change printing on webrunner.

Parameters

string $reporter
The reporter class to use.

runsource 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–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-CakeTestSuiteCommand.html