PhpBench\Tests\Unit\Progress\Logger\DotsLoggerTest::testIteration PHP Метод

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

It should show a spinner when not in CI mode.
public testIteration ( )
    public function testIteration()
    {
        $logger = $this->createLogger(false);
        $this->iteration->getIndex()->willReturn(0, 1, 2, 3, 4);
        $this->output->write("\r|")->shouldBeCalled();
        $this->output->write("\r/")->shouldBeCalled();
        $this->output->write("\r-")->shouldBeCalled();
        $this->output->write("\r|")->shouldBeCalled();
        $this->output->write("\r\\")->shouldBeCalled();
        $logger->iterationStart($this->iteration->reveal());
        $logger->iterationStart($this->iteration->reveal());
        $logger->iterationStart($this->iteration->reveal());
        $logger->iterationStart($this->iteration->reveal());
        $logger->iterationStart($this->iteration->reveal());
    }