How to save the out put of phpunit

hi,

i want to save the out put of phpunit in a folder automatically as soon as as the test is completed. for example if i run a test called calculatorTest, the output which ever i see in an IDE(Net bean or Eclipse) or in the command prompt must be stored in a file in the file system. so that i can refer to them at a later time. but after searching a long for this i did not find any solution.

please some body suggest what to do