On this page
Class CakeTestSuiteCommand
Class to customize loading of test suites from CLI
- PHPUnit_TextUI_Command
- CakeTestSuiteCommand 
Package: Cake\TestSuite
Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/CakeTestSuiteCommand.php
  
  Copyright: Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/CakeTestSuiteCommand.php
Method Summary
- 
    __construct() publicConstruct method
- 
    getRunner() publicCreate a runner for the command.
- 
    handleFixture() publicHandler for customizing the FixtureManager class/
- 
    handleReporter() publicHandles output flag used to change printing on webrunner.
- 
    run() publicUgly 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 $paramsoptional array()
- list of options to be used for this run
Throws
MissingTestLoaderExceptionWhen 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
CakeTestRunnerhandleFixture()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 $exitoptional 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