Пример #1
0
 /**
  * Find all images
  *
  * @return array All images
  */
 public function findAll()
 {
     $images = $this->dao->findAll();
     $result = array();
     foreach ($images as $image) {
         $result[] = array_merge($image, $this->flickr->getSizes($image['photo_id']));
     }
     return $result;
 }
Пример #2
0
 /**
  * @covers FA\Dao\ImageDao::findAll
  */
 public function testFindAll()
 {
     $result = $this->dao->findAll();
     $this->assertInternalType('array', $result);
     $this->assertEquals(10, count($result));
 }