shouldn't this be an instanceof check on some of the phpspec exception interfaces ?