PHPunit 4 compatibility

fixes #331

Check if PHPUnit version is under 4.0.0