Menu

#7 Div tag for more CSS control on PrettyTest

open
nobody
None
5
2014-08-15
2003-04-07
Mark K
No

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.

Discussion

  • Mark K

    Mark K - 2003-04-07

    diff of phpunit.php affecting CSS and PrettyTest

     
  • Mark K

    Mark K - 2003-04-07

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.