PhpBench\Tests\Unit\Storage\Archiver\XmlArchiverTest::testRestore PHP Method

testRestore() public method

It should skip existing records.
public testRestore ( )
    public function testRestore()
    {
        $this->xmlDecoder->decode(Argument::type(Document::class))->shouldBeCalledTimes(1)->willReturn($this->collection->reveal(), $this->collection2->reveal());
        $this->storage->has(1)->willReturn(true);
        $this->storage->has(2)->willReturn(false);
        $this->storage->store($this->collection->reveal())->shouldBeCalled();
        $this->archiver->restore($this->output);
    }