mageekguy\atoum\report\fields\runner\event\nyancat::__toString PHP Метод

__toString() публичный Метод

public __toString ( )
    public function __toString()
    {
        if (in_array($this->event, array(test::fail, test::error, test::exception, test::uncompleted))) {
            $this->catColorizer = new colorizer(31);
        }
        if (microtime(true) - $this->utime < 0.15) {
            return '';
        }
        $string = PHP_EOL;
        if ($this->event !== runner::runStop) {
            $cat = $this->cat[$this->offset % 2];
            $string .= $this->clear();
            for ($row = 0, $count = sizeof($cat); $row < $count; $row++) {
                $string .= $this->getRainbowRow() . $this->catColorizer->colorize($cat[$row]) . PHP_EOL;
            }
            $string .= PHP_EOL;
            $this->offset = $this->offset + 1 === sizeof($this->rainbowColorizers) ? 0 : $this->offset + 1;
            $this->nyan = $string;
        }
        $this->utime = microtime(true);
        return $string;
    }