public function testNextPage() { $headers = ['Link' => ['<http://api.staging.unsplash.com/photos?page=266>; rel="last", <http://api.staging.unsplash.com/photos?page=2>; rel="next"']]; $arrayObject = new Unsplash\ArrayObject([], $headers); $pages = ['first' => null, 'next' => 2, 'prev' => null, 'last' => 266]; $this->assertEquals($pages, $arrayObject->getPages()); }