src/Reporter/Terminal.php
public function _reportSummary($summary)
    {
        $passed = $summary->passed();
        $skipped = $summary->skipped();
        $pending = $summary->pending();
        $excluded = $summary->excluded();
        $failed = $summary->failed();
        $errored = $summary->errored();
        $expectation = $summary->expectation();
        $total = $summary->executable();

        $this->write("Expectations   : ");
        $this->write("{$expectation} Executed");
        $this->write("\n");
        $this->write("Specifications : ");
        $this->write("{$pending} Pending", 'cyan');
        $this->write(", ");
        $this->write("{$excluded} Excluded", 'yellow');
        $this->write(", ");
        $this->write("{$skipped} Skipped", 'light-grey');
        $this->write("\n\n");
        $this->write('Passed ' . ($passed), 'green');
        $this->write(" of {$total} ");

        if ($failed + $errored) {
            $this->write('FAIL ', 'red');
            $this->write('(');
            $comma = false;
            if ($failed) {
                $this->write('FAILURE: ' . $failed, 'red');
                $comma = true;
            }
            if ($errored) {
                if ($comma) {
                    $this->write(', ');
                }
                $this->write('EXCEPTION: ' . $errored, 'magenta');
            }
            $this->write(')');
        } else {
            $this->write('PASS', 'green');
        }
        $time = number_format(microtime(true) - $this->_start, 3);
        $memory = $this->readableSize($summary->memoryUsage());
        $this->write(" in {$time} seconds (using {$memory}B)");
        $this->write("\n\n");

        $this->_reportFocused($summary);
    }
public function _reportSummary($summary)
    {
        $passed = $summary->passed();
        $skipped = $summary->skipped();
        $pending = $summary->pending();
        $excluded = $summary->excluded();
        $failed = $summary->failed();
        $errored = $summary->errored();
        $expectation = $summary->expectation();
        $total = $summary->executable();

        $this->write("Expectations   : ");
        $this->write("{$expectation} Executed");
        $this->write("\n");
        $this->write("Specifications : ");
        $this->write("{$pending} Pending", 'cyan');
        $this->write(", ");
        $this->write("{$excluded} Excluded", 'yellow');
        $this->write(", ");
        $this->write("{$skipped} Skipped", 'light-grey');
        $this->write("\n\n");
        $this->write('Passed ' . ($passed), 'green');
        $this->write(" of {$total} ");

        if ($failed + $errored) {
            $this->write('FAIL ', 'red');
            $this->write('(');
            $comma = false;
            if ($failed) {
                $this->write('FAILURE: ' . $failed, 'red');
                $comma = true;
            }
            if ($errored) {
                if ($comma) {
                    $this->write(', ');
                }
                $this->write('EXCEPTION: ' . $errored, 'magenta');
            }
            $this->write(')');
        } else {
            $this->write('PASS', 'green');
        }
        $time = number_format(microtime(true) - $this->_start, 3);
        $memory = $this->readableSize($summary->memoryUsage());
        $this->write(" in {$time} seconds (using {$memory}B)");
        $this->write("\n\n");

        $this->_reportFocused($summary);
    }
public function _reportSummary ( $ summary ) { $ passed = $ summary -> passed ( ) ; $ skipped = $ summary -> skipped ( ) ; $ pending = $ summary -> pending ( ) ; $ excluded = $ summary -> excluded ( ) ; $ failed = $ summary -> failed ( ) ; $ errored = $ summary -> errored ( ) ; $ expectation = $ summary -> expectation ( ) ; $ total = $ summary -> executable ( ) ; $ this -> write ( "Expectations   : " ) ; $ this -> write ( "{$expectation} Executed" ) ; $ this -> write ( "\n" ) ; $ this -> write ( "Specifications : " ) ; $ this -> write ( "{$pending} Pending" , 'cyan' ) ; $ this -> write ( ", " ) ; $ this -> write ( "{$excluded} Excluded" , 'yellow' ) ; $ this -> write ( ", " ) ; $ this -> write ( "{$skipped} Skipped" , 'light-grey' ) ; $ this -> write ( "\n\n" ) ; $ this -> write ( 'Passed ' . ( $ passed ) , 'green' ) ; $ this -> write ( " of {$total} " ) ; if ( $ failed + $ errored ) { $ this -> write ( 'FAIL ' , 'red' ) ; $ this -> write ( '(' ) ; $ comma = false ; if ( $ failed ) { $ this -> write ( 'FAILURE: ' . $ failed , 'red' ) ; $ comma = true ; } if ( $ errored ) { if ( $ comma ) { $ this -> write ( ', ' ) ; } $ this -> write ( 'EXCEPTION: ' . $ errored , 'magenta' ) ; } $ this -> write ( ')' ) ; } else { $ this -> write ( 'PASS' , 'green' ) ; } $ time = number_format ( microtime ( true ) - $ this -> _start , 3 ) ; $ memory = $ this -> readableSize ( $ summary -> memoryUsage ( ) ) ; $ this -> write ( " in {$time} seconds (using {$memory}B)" ) ; $ this -> write ( "\n\n" ) ; $ this -> _reportFocused ( $ summary ) ; }
Print a summary of specs execution to STDOUT

@param object $summary The execution summary instance.
Print a summary of specs execution to STDOUT