src/Runners/PHPUnit/BaseRunner.php
protected function logCoverage()
    {
        if (!$this->hasCoverage()) {
            return;
        }

        $filteredOptions = $this->options->filtered;

        $reporter = $this->getCoverage()->getReporter();

        if (isset($filteredOptions['coverage-clover'])) {
            $reporter->clover($filteredOptions['coverage-clover']);
        }

        if (isset($filteredOptions['coverage-html'])) {
            $reporter->html($filteredOptions['coverage-html']);
        }
        if (isset($filteredOptions['coverage-text'])) {
            $reporter->text();
        }

        if (isset($filteredOptions['coverage-xml'])) {
            $reporter->xml($filteredOptions['coverage-xml']);
        }

        $reporter->php($filteredOptions['coverage-php']);
    }
protected function logCoverage()
    {
        if (!$this->hasCoverage()) {
            return;
        }

        $filteredOptions = $this->options->filtered;

        $reporter = $this->getCoverage()->getReporter();

        if (isset($filteredOptions['coverage-clover'])) {
            $reporter->clover($filteredOptions['coverage-clover']);
        }

        if (isset($filteredOptions['coverage-html'])) {
            $reporter->html($filteredOptions['coverage-html']);
        }
        if (isset($filteredOptions['coverage-text'])) {
            $reporter->text();
        }

        if (isset($filteredOptions['coverage-xml'])) {
            $reporter->xml($filteredOptions['coverage-xml']);
        }

        $reporter->php($filteredOptions['coverage-php']);
    }
protected function logCoverage ( ) { if ( ! $ this -> hasCoverage ( ) ) { return ; } $ filteredOptions = $ this -> options -> filtered ; $ reporter = $ this -> getCoverage ( ) -> getReporter ( ) ; if ( isset ( $ filteredOptions [ 'coverage-clover' ] ) ) { $ reporter -> clover ( $ filteredOptions [ 'coverage-clover' ] ) ; } if ( isset ( $ filteredOptions [ 'coverage-html' ] ) ) { $ reporter -> html ( $ filteredOptions [ 'coverage-html' ] ) ; } if ( isset ( $ filteredOptions [ 'coverage-text' ] ) ) { $ reporter -> text ( ) ; } if ( isset ( $ filteredOptions [ 'coverage-xml' ] ) ) { $ reporter -> xml ( $ filteredOptions [ 'coverage-xml' ] ) ; } $ reporter -> php ( $ filteredOptions [ 'coverage-php' ] ) ; }
Write coverage to file if requested.
Write coverage to file if requested .