PhpBench\Storage\Driver\Xml\HistoryIterator::current PHP Method

current() public method

public current ( )
    public function current()
    {
        $this->init();
        return $this->entries->current();
    }

Usage Example

 /**
  * It should "iterate" if the directory does not exist.
  */
 public function testNoDirectoryExist()
 {
     $iterator = new HistoryIterator($this->xmlDecoder->reveal(), 'foobar_not_exist');
     $iterator->current();
 }