Avoid passing Error to onNotSuccesfulTest on PHP 7
Avoid passing Error to onNotSuccesfulTest on PHP 7

onNotSuccessfulTest is typehinted as Exception, so only Exception
throwables should be passed to it.

stof/phpunit,OndraM/phpunit,luomor/phpunit,eelf/phpunit,dshafik/phpunit,masarakki/phpunit,didiwuliu/phpunit,DonaldKellett/phpunit,tronsha/phpunit,duncan3dc/phpunit,sebastianbergmann/phpunit,Firehed/phpunit,ezzatron/phpunit