Esempio n. 1
0
 /**
  * Rewind the adapter pool.
  * @return \Brickoo\Component\Storage\StorageProxy
  */
 private function rewindAdapterPool()
 {
     $this->adapterPoolIterator->rewind();
     return $this;
 }
 /** @covers Brickoo\Component\Storage\Adapter\AdapterPoolIterator::remove */
 public function testAdapterIdentifierTypeOfInteger()
 {
     $adapterPoolIterator = new AdapterPoolIterator([$this->getAdapterStub(), $this->getAdapterStub()]);
     $adapterPoolIterator->remove(0);
     $this->assertEquals(1, $adapterPoolIterator->key());
 }