CakeHtmlReporter Reports Results of TestSuites and Test Cases in an HTML format / context.
_getQueryLink( )
Returns the query string formatted for ouput in links
string
_getStackTrace( Exception $e )
Gets a formatted stack trace.
$e
string
_htmlEntities( string $message )
Character set adjusted entity conversion.
$message
string
_paintLinks( )
Renders the links that for accessing things in the test suite.
_queryString( array $url )
Convert an array of parameters into a query string url
$url
string
paintCoverage( array $coverage )
Paints a code coverage report.
$coverage
paintDocumentEnd( )
Paints the end of the document html.
CakeBaseReporter::paintDocumentEnd()
paintDocumentStart( )
Paints the document start content contained in header.php
CakeBaseReporter::paintDocumentStart()
paintException( Exception $message , mixed $test )
Paints a PHP exception.
$message
$test
paintFail( PHPUnit_Framework_AssertionFailedError $message , mixed $test )
Paints the test failure with a breadcrumbs trail of the nesting test suites below the top level test.
$message
$test
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
paintHeader( )
Paints the top of the web page setting the title to the name of the starting test.
paintPass( PHPUnit_Framework_Test $test , float $time null )
Paints the test pass with a breadcrumbs trail of the nesting test suites below the top level test.
$test
$time
optional null paintSkip( string $message , PHPUnit_Framework_TestCase $test )
Prints the message for skipping tests.
$message
$test
paintTestMenu( )
Paints the menu on the left side of the test suite interface. Contains all of the various plugin, core, and app buttons.
CakeBaseReporter::paintTestMenu()
sendContentType( )
Set the content-type header so it is in the correct encoding.
sendNoCacheHeaders( )
Send the headers necessary to ensure the page is reloaded on every request. Otherwise you could be scratching your head over out of date test data.
startTestSuite( PHPUnit_Framework_TestSuite $suite )
A test suite started.
$suite
CakeBaseReporter::startTestSuite()
testCaseList( )
Retrieves and paints the list of tests cases in an HTML format.
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.
string
endTest( PHPUnit_Framework_Test $test , float $time )
A test ended.
$test
$time
endTestSuite( PHPUnit_Framework_TestSuite $suite )
A test suite ended.
$suite
paintResult( PHPUnit_Framework_TestResult $result )
Paint result
$result
printResult( PHPUnit_Framework_TestResult $result )
Print result
$result
startTest( PHPUnit_Framework_Test $test )
A test started.
$test
© 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-CakeHtmlReporter.html