Make assertNotInstanceof handle more like phpunit