Adding a div id="PHPUnit" around the output of the pretty
test allows much greater control over the display of the
output rather than just a few table cells marked with a
class="...". Here is a sample style sheet that can be used
if a div tag is placed around the entire output.
#PHPUnit table {
background-color:#FCC;
}
#PHPUnit table td {
background-color:#CCC;
}
#PHPUnit table td.Failure {
background-color:#F99;
}
#PHPUnit table td.Pass {
background-color:#9F9;
}
#PHPUnit H2 {
font-family:Helvetica;
text-align:center;
}
#PHPUnit p {
font-family:Arial;
text-align:center;
}
Also, this can help reduce name collisions with existing
CSS, allowing for easier integration into sites.
diff of phpunit.php affecting CSS and PrettyTest
Logged In: YES
user_id=311382
+ if (phpversion() >= '4' && $old_handler != '') {
set_error_handler($old_handler); // revert to prior error
handler
$PHPUnit_testRunning = null;
}
This part of the patch also, I had to include that check in
php4.3.1 on apache2 or else the first test always failed because
of an internal PHP error when calling set_error_handler with an
empty string. This might be a problem with PHPUnit, I can't tell