Updating to newer PHPUnit API

Makes the API test work