public function testGetLinkByRel() { $url = 'http://placekitten.com/200/300'; $res = new Response(); $res->addLink('image_src', $url); $link = $res->getLink('image_src'); $this->assertEquals($url, $link); }