Example #1
0
 /**
  * Gets a count of all images in database
  *
  * @return int Count of images
  */
 public function countImages()
 {
     return $this->dao->countImages();
 }
Example #2
0
 /**
  * @covers FA\Dao\ImageDao::findFirstImage
  */
 public function testFindFirstImageNoImagesInDatabase()
 {
     // Make sure the table is empty
     $this->db->exec('DELETE FROM images');
     $this->assertFalse($this->dao->findFirstImage());
 }