src/Runners/PHPUnit/ResultPrinter.php
private function getSuccessFooter(): string
    {
        $tests = $this->totalCases;
        $asserts = $this->results->getTotalAssertions();

        if ($this->totalSkippedOrIncomplete > 0) {
            // phpunit 4.5 produce NOT plural version for test(s) and assertion(s) in that case
            // also it shows result in standard color scheme
            return sprintf(
                "OK, but incomplete, skipped, or risky tests!\n"
                . "Tests: %d, Assertions: %d, Incomplete: %d.\n",
                $tests,
                $asserts,
                $this->totalSkippedOrIncomplete
            );
        }

        // phpunit 4.5 produce plural version for test(s) and assertion(s) in that case
        // also it shows result as black text on green background
        return $this->green(sprintf(
            "OK (%d test%s, %d assertion%s)\n",
            $tests,
            ($tests === 1) ? '' : 's',
            $asserts,
            ($asserts === 1) ? '' : 's'
        ));
    }
private function getSuccessFooter(): string
    {
        $tests = $this->totalCases;
        $asserts = $this->results->getTotalAssertions();

        if ($this->totalSkippedOrIncomplete > 0) {
            // phpunit 4.5 produce NOT plural version for test(s) and assertion(s) in that case
            // also it shows result in standard color scheme
            return sprintf(
                "OK, but incomplete, skipped, or risky tests!\n"
                . "Tests: %d, Assertions: %d, Incomplete: %d.\n",
                $tests,
                $asserts,
                $this->totalSkippedOrIncomplete
            );
        }

        // phpunit 4.5 produce plural version for test(s) and assertion(s) in that case
        // also it shows result as black text on green background
        return $this->green(sprintf(
            "OK (%d test%s, %d assertion%s)\n",
            $tests,
            ($tests === 1) ? '' : 's',
            $asserts,
            ($asserts === 1) ? '' : 's'
        ));
    }
private function getSuccessFooter ( ) : string { $ tests = $ this -> totalCases ; $ asserts = $ this -> results -> getTotalAssertions ( ) ; if ( $ this -> totalSkippedOrIncomplete > 0 ) { // phpunit 4.5 produce NOT plural version for test(s) and assertion(s) in that case // also it shows result in standard color scheme return sprintf ( "OK, but incomplete, skipped, or risky tests!\n" . "Tests: %d, Assertions: %d, Incomplete: %d.\n" , $ tests , $ asserts , $ this -> totalSkippedOrIncomplete ) ; } // phpunit 4.5 produce plural version for test(s) and assertion(s) in that case // also it shows result as black text on green background return $ this -> green ( sprintf ( "OK (%d test%s, %d assertion%s)\n" , $ tests , ( $ tests === 1 ) ? '' : 's' , $ asserts , ( $ asserts === 1 ) ? '' : 's' ) ) ; }
Get the footer for a test collection containing all successful
tests.

@return string
Get the footer for a test collection containing all successful tests .