Class CakeTestRunner
A custom test runner for Cake's use of PHPUnit.
- PHPUnit_TextUI_TestRunner
- CakeTestRunner
Package: Cake\TestSuite
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/CakeTestRunner.php
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/CakeTestRunner.php
Method Summary
-
__construct() public
Lets us pass in some options needed for cake's webrunner. -
_getFixtureManager() protected
Get the fixture manager class specified or use the default one. -
createTestResult() protected
Create the test result and splice on our code coverage reports. -
doRun() public
Actually run a suite of tests. Cake initializes fixtures here using the chosen fixture manager
Method Detail
__construct() public ¶
__construct( mixed $loader , array $params )
Lets us pass in some options needed for cake's webrunner.
Parameters
- mixed $loader
- array $params
- list of options to be used for this run
_getFixtureManager() protected ¶
_getFixtureManager( array $arguments )
Get the fixture manager class specified or use the default one.
Parameters
- array $arguments
Returns
mixed
instance of a fixture manager.
instance of a fixture manager.
Throws
RuntimeException
When fixture manager class cannot be loaded.
When fixture manager class cannot be loaded.
createTestResult() protected ¶
createTestResult( )
Create the test result and splice on our code coverage reports.
Returns
PHPUnit_Framework_TestResult