PhpBench\Progress\Logger\AnsiLogger::renderCollectionStatus PHP Method

renderCollectionStatus() protected method

protected renderCollectionStatus ( Variant $variant )
$variant PhpBench\Model\Variant
    protected function renderCollectionStatus(Variant $variant)
    {
        $this->output->write(PHP_EOL);
        $this->output->write("");
        // clear the line
        $this->output->write(PHP_EOL);
        $this->output->write(sprintf('<info>subject</info> %s<info> with </info>%s<info> iteration(s) of </info>%s<info> rev(s),</info>', sprintf('%s', $variant->getSubject()->getName()), count($variant), $variant->getRevolutions()));
        $this->output->write(PHP_EOL);
        $this->output->write(sprintf('<info>parameters</info> %s', json_encode($variant->getParameterSet()->getArrayCopy(), true)));
        $this->output->write(PHP_EOL);
        $this->output->write("[" . 4 . 'A');
        // put the cursor back to the line with the measurements
        $this->output->write("");
        // put the cursor back at col 0
    }