PhpBench\Tests\Unit\Storage\UuidResolverTest::testLatestMinusNth PHP Method

testLatestMinusNth() public method

It should return the nth history run using the minus operator.
public testLatestMinusNth ( )
    public function testLatestMinusNth()
    {
        $this->storage->history()->willReturn($this->history->reveal());
        $this->history->current()->willReturn($this->historyEntry->reveal(), $this->historyEntry->reveal(), $this->historyEntry1->reveal());
        $this->historyEntry->getRunId()->willReturn(1234);
        $this->historyEntry1->getRunId()->willReturn(4321);
        $this->history->next()->shouldBeCalledTimes(3);
        $uuid = $this->resolver->resolve('latest-2');
        $this->assertEquals(4321, $uuid);
    }