[UPHPU] PHPUnit Output Question
Justin Giboney
jgiboney at gmail.com
Wed Mar 4 20:29:14 MST 2009
Wow, that helped... the output still isn't that useful, but thats about
content not looks. Thanks, it looks a lot better now.
Justin Giboney
On Wed, Mar 4, 2009 at 7:51 PM, Brady Mitchell <mydarb at gmail.com> wrote:
> 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