eclipse.php
public function paintGroupEnd($group)
    {
        $this->group = '';
        $cc          = '';
        if ($this->cc) {
            if (extension_loaded('xdebug')) {
                $arrfiles = xdebug_get_code_coverage();
                xdebug_stop_code_coverage();
                $thisdir    = dirname(__FILE__);
                $thisdirlen = strlen($thisdir);
                foreach ($arrfiles as $index=>$file) {
                    if (substr($index, 0, $thisdirlen)===$thisdir) {
                        continue;
                    }
                    $lcnt = 0;
                    $ccnt = 0;
                    foreach ($file as $line) {
                        if ($line == -2) {
                            continue;
                        }
                        $lcnt++;
                        if ($line==1) {
                            $ccnt++;
                        }
                    }
                    if ($lcnt > 0) {
                        $cc .= round(($ccnt/$lcnt) * 100, 2) . '%';
                    } else {
                        $cc .= '0.00%';
                    }
                    $cc.= "\t" . $index . "\n";
                }
            }
        }

        $this->listener->write(
            '{status:"coverage",message:"' . self::escapeVal($cc) . '"}'
        );
    }
public function paintGroupEnd($group)
    {
        $this->group = '';
        $cc          = '';
        if ($this->cc) {
            if (extension_loaded('xdebug')) {
                $arrfiles = xdebug_get_code_coverage();
                xdebug_stop_code_coverage();
                $thisdir    = dirname(__FILE__);
                $thisdirlen = strlen($thisdir);
                foreach ($arrfiles as $index=>$file) {
                    if (substr($index, 0, $thisdirlen)===$thisdir) {
                        continue;
                    }
                    $lcnt = 0;
                    $ccnt = 0;
                    foreach ($file as $line) {
                        if ($line == -2) {
                            continue;
                        }
                        $lcnt++;
                        if ($line==1) {
                            $ccnt++;
                        }
                    }
                    if ($lcnt > 0) {
                        $cc .= round(($ccnt/$lcnt) * 100, 2) . '%';
                    } else {
                        $cc .= '0.00%';
                    }
                    $cc.= "\t" . $index . "\n";
                }
            }
        }

        $this->listener->write(
            '{status:"coverage",message:"' . self::escapeVal($cc) . '"}'
        );
    }
Paints coverage report if enabled.

@param string $group     Name of test or other label.