[UPHPU] PHPUnit Output Question

Brady Mitchell mydarb at gmail.com
Wed Mar 4 19:51:10 MST 2009


> The problem with the
> output, is that it is really hard to read. How can I  have some clean
> output?

Have you tried putting <pre> tags around your loop?

I've never used phpunit, but when debugging I pretty much always wrap  
output in pre tags to make of more readable.

> $suite = new PHPUnit_Framework_TestSuite('StringTest');
> $result = $suite->run();
echo '<pre>';
>
> foreach ($result->failures() as $failure){
>   echo '<hr>' . $failure->thrownException();
> }
echo '</pre>';


More information about the UPHPU mailing list