/**
  * Save new image
  *
  * @param  array $data Array containing 'day' and 'photo_id' keys
  * @return bool  True on success, false on failure
  */
 public function save(array $data)
 {
     return $this->dao->save($data);
 }
 /**
  * @covers FA\Dao\ImageDao::save
  */
 public function testSaveDuplicatePhotoIdThrowsException()
 {
     $this->setExpectedException('PDOException', 'SQLSTATE[23000]: Integrity constraint violation: 19 column photo_id is not unique');
     $this->dao->save(array('day' => 11, 'photo_id' => 7512338326.0));
 }