Updated for phpunit 4.0
Fix passing of failed jobs to handler.