コード例 #1
0
ファイル: StorageProxy.php プロジェクト: brickoo/components
 /**
  * Rewind the adapter pool.
  * @return \Brickoo\Component\Storage\StorageProxy
  */
 private function rewindAdapterPool()
 {
     $this->adapterPoolIterator->rewind();
     return $this;
 }
コード例 #2
0
 /** @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());
 }