CakeTextReporter contains reporting features used for plain text based output
CakeBaseReporter
CakeTextReporter paintCoverage( array $coverage )
Generates a Text summary of the coverage data.
$coverage paintDocumentStart( )
Sets the text/plain header if the test is not a CLI test.
CakeBaseReporter::paintDocumentStart() paintException( Exception $exception )
Paints a PHP exception.
$exception paintFail( PHPUnit_Framework_AssertionFailedError $message )
Paints a failing test.
$message paintFooter( PHPUnit_Framework_TestResult $result )
Paints the end of the test with a summary of the passes and failures.
$result paintFormattedMessage( string $message )
Paints formatted text such as dumped variables.
$message paintSkip( string $message )
Prints the message for skipping tests.
$message testCaseList( )
Generate a test case list in plain text. Creates as series of URLs for tests that can be run. One case per line.
CakeBaseReporter::testCaseList() __construct( string $charset 'utf-8' , array $params array() )
Does nothing yet. The first output will be sent on the first test start.
$charset optional 'utf-8' $params optional array() addError( PHPUnit_Framework_Test $test , Exception $e , float $time )
An error occurred.
$test $e $time addFailure( PHPUnit_Framework_Test $test , PHPUnit_Framework_AssertionFailedError $e , float $time )
A failure occurred.
$test $e $time addIncompleteTest( PHPUnit_Framework_Test $test , Exception $e , float $time )
Incomplete test.
$test $e $time addSkippedTest( PHPUnit_Framework_Test $test , Exception $e , float $time )
Skipped test.
$test $e $time baseUrl( )
Get the baseUrl if one is available.
stringendTest( PHPUnit_Framework_Test $test , float $time )
A test ended.
$test $time endTestSuite( PHPUnit_Framework_TestSuite $suite )
A test suite ended.
$suite paintDocumentEnd( )
Paints the end of the response from the test suite. Used to paint things like </body> in an html page.
paintResult( PHPUnit_Framework_TestResult $result )
Paint result
$result paintTestMenu( )
Paint a list of test sets, core, app, and plugin test sets available.
printResult( PHPUnit_Framework_TestResult $result )
Print result
$result startTest( PHPUnit_Framework_Test $test )
A test started.
$test startTestSuite( PHPUnit_Framework_TestSuite $suite )
A test suite started.
$suite
© 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-CakeTextReporter.html