support phpunit 3 and 4

Closes: #7, #8