Class CakeBaseReporter
CakeBaseReporter contains common reporting features used in the CakePHP Test suite
- PHPUnit_TextUI_ResultPrinter
-
CakeBaseReporter
Direct Subclasses
Copyright: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
License: MIT License
Location: Cake/TestSuite/Reporter/CakeBaseReporter.php
Properties summary
-
$_characterSet
protectedstring
Character set for the output of test reporting. -
$_headerSent
protectedboolean
Headers sent -
$params
publicarray
Array of request parameters. Usually parsed GET params.
Method Summary
-
__construct() public
Does nothing yet. The first output will be sent on the first test start.
-
addError() public
An error occurred. -
addFailure() public
A failure occurred. -
addIncompleteTest() public
Incomplete test. -
addSkippedTest() public
Skipped test. -
baseUrl() public
Get the baseUrl if one is available. -
endTest() public
A test ended. -
endTestSuite() public
A test suite ended. -
paintDocumentEnd() public
Paints the end of the response from the test suite. Used to paint things like in an html page.
-
paintDocumentStart() public
Paints the start of the response from the test suite. Used to paint things like head elements in an html page.
-
paintResult() public
Paint result -
paintTestMenu() public
Paint a list of test sets, core, app, and plugin test sets available.
-
printResult() public
Print result -
startTest() public
A test started. -
startTestSuite() public
A test suite started. -
testCaseList() public
Retrieves a list of test cases from the active Manager class, displaying it in the correct format for the reporter subclass
Method Detail
__construct() public ¶
__construct( string $charset = 'utf-8' , array $params = array() )
Does nothing yet. The first output will be sent on the first test start.
Params
- show_passes - Should passes be shown
- plugin - Plugin test being run?
- core - Core test being run.
- case - The case being run
- codeCoverage - Whether the case/group being run is being code covered.
Parameters
- string $charset optional 'utf-8'
- The character set to output with. Defaults to UTF-8
- array $params optional array()
- Array of request parameters the reporter should use. See above.
addError() public ¶
addError( PHPUnit_Framework_Test $test , Exception $e , float $time )
An error occurred.
Parameters
- PHPUnit_Framework_Test $test
- Exception $e
- float $time
addFailure() public ¶
addFailure( PHPUnit_Framework_Test $test , PHPUnit_Framework_AssertionFailedError $e , float $time )
A failure occurred.
Parameters
- PHPUnit_Framework_Test $test
- PHPUnit_Framework_AssertionFailedError $e
- float $time
addIncompleteTest() public ¶
addIncompleteTest( PHPUnit_Framework_Test $test , Exception $e , float $time )
Incomplete test.
Parameters
- PHPUnit_Framework_Test $test
- Exception $e
- float $time
addSkippedTest() public ¶
addSkippedTest( PHPUnit_Framework_Test $test , Exception $e , float $time )
Skipped test.
Parameters
- PHPUnit_Framework_Test $test
- Exception $e
- float $time
baseUrl() public ¶
baseUrl( )
Get the baseUrl if one is available.
Returns
The base url for the request.
endTest() public ¶
endTest( PHPUnit_Framework_Test $test , float $time )
A test ended.
Parameters
- PHPUnit_Framework_Test $test
- float $time
endTestSuite() public ¶
endTestSuite( PHPUnit_Framework_TestSuite $suite )
A test suite ended.
Parameters
- PHPUnit_Framework_TestSuite $suite
paintDocumentEnd() public ¶
paintDocumentEnd( )
Paints the end of the response from the test suite. Used to paint things like in an html page.
paintDocumentStart() public ¶
paintDocumentStart( )
Paints the start of the response from the test suite. Used to paint things like head elements in an html page.
paintResult() public ¶
paintResult( PHPUnit_Framework_TestResult $result )
Paint result
Parameters
- PHPUnit_Framework_TestResult $result
paintTestMenu() public ¶
paintTestMenu( )
Paint a list of test sets, core, app, and plugin test sets available.
printResult() public ¶
printResult( PHPUnit_Framework_TestResult $result )
Print result
Parameters
- PHPUnit_Framework_TestResult $result
startTest() public ¶
startTest( PHPUnit_Framework_Test $test )
A test started.
Parameters
- PHPUnit_Framework_Test $test
startTestSuite() public ¶
startTestSuite( PHPUnit_Framework_TestSuite $suite )
A test suite started.
Parameters
- PHPUnit_Framework_TestSuite $suite
testCaseList() public ¶
testCaseList( )
Retrieves a list of test cases from the active Manager class, displaying it in the correct format for the reporter subclass