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