Fix compatibility with phpunit 4.0

This adds the "addRiskyTest" method and the "__phpunit_setOriginalObject" method for compatibility with PHPUnit 4.0