Fix test with phpunit > 3.7

This PR allow phpunit > 3.7 to be used for running the test, it also work with phpunit 3.7.x versions.