load() 공개 메소드

public load ( $user, $imageIdentifier, Image $image )
$image Imbo\Model\Image
예제 #1
0
파일: MongoDBTest.php 프로젝트: imbo/imbo
 /**
  * @covers Imbo\Database\MongoDB::load
  * @expectedException Imbo\Exception\DatabaseException
  * @expectedExceptionMessage Unable to fetch image data
  * @expectedExceptionCode 500
  */
 public function testThrowsExceptionWhenMongoFailsDuringLoad()
 {
     $this->imageCollection->expects($this->once())->method('findOne')->will($this->throwException(new MongoException()));
     $this->driver->load('key', 'identifier', $this->getMock('Imbo\\Model\\Image'));
 }