NyanCat\PHPUnit\ResultPrinter::endTest PHP Method

endTest() public method

public endTest ( PHPUnit_Framework_Test $test, $time )
$test PHPUnit_Framework_Test
    public function endTest(\PHPUnit_Framework_Test $test, $time)
    {
        if ($this->debug) {
            return parent::endTest($test, $time);
        }
        if (!$this->lastTestFailed) {
            $this->writeProgress('pass');
        }
        if ($test instanceof \PHPUnit_Framework_TestCase) {
            $this->numAssertions += $test->getNumAssertions();
        } else {
            if ($test instanceof \PHPUnit_Extensions_PhptTestCase) {
                $this->numAssertions++;
            }
        }
        $this->lastTestFailed = FALSE;
    }