예제 #1
0
 /**
  * @param \Heystack\Core\Storage\BackendInterface $backend
  * @return void
  */
 public function addBackend(BackendInterface $backend)
 {
     $this->backends[$backend->getIdentifier()->getFull()] = $backend;
 }
 protected function setUp()
 {
     $this->mockBackend = $this->getMock('Heystack\\Core\\Storage\\BackendInterface');
     $this->mockBackend->expects($this->any())->method('getIdentifier')->will($this->returnValue(new Identifier(self::MOCK_IDENTIFIER)));
 }