Exemple #1
0
 function testConstructor_AssignsPhotosPerPageToMaximum()
 {
     $pl = new Phlickr_PhotoList($this->request, Phlickr_PhotoList::PER_PAGE_MAX + 1);
     $this->assertEquals(Phlickr_PhotoList::PER_PAGE_MAX, $pl->getPhotosPerPage(), "Didn't limit photos per page to the maximum.");
 }
 /**
  * Constructor.
  *
  * @param object Phlickr_PhotoList $pl The photo list to iterate.
  * @param boolean $isCachedAllowed Is cached data acceptable?
  */
 public function __construct(Phlickr_PhotoList $pl, $isCachedAllowed = true)
 {
     $this->_pl = $pl;
     $this->_isCachedAllowed = $isCachedAllowed;
     $this->_perPage = $pl->getPhotosPerPage();
     $this->rewind();
 }