Refactor PHPUnit_Framework_Exception