public function force(PHPUnit_Framework_TestCase $test)
    {
        if (!$test->hasFailed()) {
            return;
        }
        $testReflection = new ReflectionClass('PHPUnit_Framework_TestCase');
        $resultReflection = new ReflectionClass('PHPUnit_Framework_TestResult');

        $result = $this->getPropertyValue($testReflection, 'result', $test);
        $this
            ->forcePropertyValue($resultReflection, 'errors', array(), $result)
            ->forcePropertyValue($resultReflection, 'failures', array(), $result)
            ->forcePropertyValue($resultReflection, 'risky', array(), $result)
            ->forcePropertyValue($testReflection, 'status', PHPUnit_Runner_BaseTestRunner::STATUS_PASSED, $test)
            ->forcePropertyValue($testReflection, 'statusMessage', '', $test);
    }
public function force(PHPUnit_Framework_TestCase $test)
    {
        if (!$test->hasFailed()) {
            return;
        }
        $testReflection = new ReflectionClass('PHPUnit_Framework_TestCase');
        $resultReflection = new ReflectionClass('PHPUnit_Framework_TestResult');

        $result = $this->getPropertyValue($testReflection, 'result', $test);
        $this
            ->forcePropertyValue($resultReflection, 'errors', array(), $result)
            ->forcePropertyValue($resultReflection, 'failures', array(), $result)
            ->forcePropertyValue($resultReflection, 'risky', array(), $result)
            ->forcePropertyValue($testReflection, 'status', PHPUnit_Runner_BaseTestRunner::STATUS_PASSED, $test)
            ->forcePropertyValue($testReflection, 'statusMessage', '', $test);
    }
public function force ( PHPUnit_Framework_TestCase $ test ) { if ( ! $ test -> hasFailed ( ) ) { return ; } $ testReflection = new ReflectionClass ( 'PHPUnit_Framework_TestCase' ) ; $ resultReflection = new ReflectionClass ( 'PHPUnit_Framework_TestResult' ) ; $ result = $ this -> getPropertyValue ( $ testReflection , 'result' , $ test ) ; $ this -> forcePropertyValue ( $ resultReflection , 'errors' , array ( ) , $ result ) -> forcePropertyValue ( $ resultReflection , 'failures' , array ( ) , $ result ) -> forcePropertyValue ( $ resultReflection , 'risky' , array ( ) , $ result ) -> forcePropertyValue ( $ testReflection , 'status' , PHPUnit_Runner_BaseTestRunner :: STATUS_PASSED , $ test ) -> forcePropertyValue ( $ testReflection , 'statusMessage' , '' , $ test ) ; }
Failing test cases are not a problem anymore.

@param PHPUnit_Framework_TestCase $test
Failing test cases are not a problem anymore .