/** * Prints the header before the test output. * * @param xTestRunner $testRunner Test runner. * @param string $pattern Test filename pattern. * @return void */ public function suiteHeader(xTestRunner $testRunner, $pattern) { echo '<html> <head> <title>Unit Tests</title> <style type="text/css"> table { border-collapse:collapse; } td, th { text-align:left; padding:2px 6px; border:solid 1px #aaa; } </style> </head> <body> <h2>Unit Tests</h2>'; echo '<h4>Codebase: ' . $testRunner->getRootPath() . '</h4>'; echo '<h4>Test Suite: ' . $pattern . '</h4>'; }
/** * Prints the header before the test output. * * @param xTestRunner $testRunner Test runner. * @param string $pattern Test filename pattern. * @return void */ public function suiteHeader(xTestRunner $testRunner, $pattern) { echo 'Unit Tests' . PHP_EOL; echo 'Codebase: ' . $testRunner->getRootPath() . PHP_EOL; echo 'Test Suite: ' . $pattern . PHP_EOL; }