src/Reporter/Dot.php
protected function _write($string, $options = null)
    {
        $this->write($string, $options);
        $this->_counter++;

        if ($this->_counter % $this->_dotWidth === 0) {
            $counter = min($this->_counter, $this->_total);
            $percent = min(floor(($counter * 100) / $this->_total), 100) . '%';
            $this->write(str_pad($counter, strlen($this->_total) + 1, ' ', STR_PAD_LEFT));
            $this->write(' / ' . $this->_total);
            $this->write(' (' . str_pad($percent, 4, ' ', STR_PAD_LEFT) . ")\n");
        }
    }
protected function _write($string, $options = null)
    {
        $this->write($string, $options);
        $this->_counter++;

        if ($this->_counter % $this->_dotWidth === 0) {
            $counter = min($this->_counter, $this->_total);
            $percent = min(floor(($counter * 100) / $this->_total), 100) . '%';
            $this->write(str_pad($counter, strlen($this->_total) + 1, ' ', STR_PAD_LEFT));
            $this->write(' / ' . $this->_total);
            $this->write(' (' . str_pad($percent, 4, ' ', STR_PAD_LEFT) . ")\n");
        }
    }
protected function _write ( $ string , $ options = null ) { $ this -> write ( $ string , $ options ) ; $ this -> _counter ++ ; if ( $ this -> _counter % $ this -> _dotWidth === 0 ) { $ counter = min ( $ this -> _counter , $ this -> _total ) ; $ percent = min ( floor ( ( $ counter * 100 ) / $ this -> _total ) , 100 ) . '%' ; $ this -> write ( str_pad ( $ counter , strlen ( $ this -> _total ) + 1 , ' ' , STR_PAD_LEFT ) ) ; $ this -> write ( ' / ' . $ this -> _total ) ; $ this -> write ( ' (' . str_pad ( $ percent , 4 , ' ' , STR_PAD_LEFT ) . ")\n" ) ; } }
Outputs the string message in the console.

@param string       $string  The string message.
@param array|string $options The color options.
Outputs the string message in the console .