src/Renderer/Text.php
public function renderInitialRunFail(TestSuiteResult $result)
    {
        $error = [];
        $error[] = 'Tests must be in a fully passing state before Humbug is run.';
        $error[] = 'Incomplete, skipped or risky tests are allowed.';
        if ($result->getExitCode() !== 0) {
            $error[] = 'The testing framework reported an exit code of ' . $result->getExitCode() . '.';
        }
        if ($result->hasFailure()) {
            $error[] = 'The testing framework ran into a failure or error. Refer to output below.';
        }
        if ($result->hasStdOut()) {
            $error[] = 'Stdout:';
            $error = array_merge($error, $this->indent($this->extractFail($result->getStdOut()), true));
        }
        if ($result->hasStdErr()) {
            $error[] = 'Stderr:';
            $error = array_merge($error, $this->indent($result->getStdErr(), true));
        }
        foreach ($error as $err) {
            $this->write('<fg=red>' . $err . '</fg=red>');
        }
    }
public function renderInitialRunFail(TestSuiteResult $result)
    {
        $error = [];
        $error[] = 'Tests must be in a fully passing state before Humbug is run.';
        $error[] = 'Incomplete, skipped or risky tests are allowed.';
        if ($result->getExitCode() !== 0) {
            $error[] = 'The testing framework reported an exit code of ' . $result->getExitCode() . '.';
        }
        if ($result->hasFailure()) {
            $error[] = 'The testing framework ran into a failure or error. Refer to output below.';
        }
        if ($result->hasStdOut()) {
            $error[] = 'Stdout:';
            $error = array_merge($error, $this->indent($this->extractFail($result->getStdOut()), true));
        }
        if ($result->hasStdErr()) {
            $error[] = 'Stderr:';
            $error = array_merge($error, $this->indent($result->getStdErr(), true));
        }
        foreach ($error as $err) {
            $this->write('<fg=red>' . $err . '</fg=red>');
        }
    }
public function renderInitialRunFail ( TestSuiteResult $ result ) { $ error = [ ] ; $ error [ ] = 'Tests must be in a fully passing state before Humbug is run.' ; $ error [ ] = 'Incomplete, skipped or risky tests are allowed.' ; if ( $ result -> getExitCode ( ) !== 0 ) { $ error [ ] = 'The testing framework reported an exit code of ' . $ result -> getExitCode ( ) . '.' ; } if ( $ result -> hasFailure ( ) ) { $ error [ ] = 'The testing framework ran into a failure or error. Refer to output below.' ; } if ( $ result -> hasStdOut ( ) ) { $ error [ ] = 'Stdout:' ; $ error = array_merge ( $ error , $ this -> indent ( $ this -> extractFail ( $ result -> getStdOut ( ) ) , true ) ) ; } if ( $ result -> hasStdErr ( ) ) { $ error [ ] = 'Stderr:' ; $ error = array_merge ( $ error , $ this -> indent ( $ result -> getStdErr ( ) , true ) ) ; } foreach ( $ error as $ err ) { $ this -> write ( '<fg=red>' . $ err . '</fg=red>' ) ; } }
Render message where the initial test run did not pass (excl. incomplete/skipped/risky tests)

@param TestSuiteResult $result
Render message where the initial test run did not pass ( excl . incomplete / skipped / risky tests )