use Symfony\Component\WebLink\GenericLinkProvider;
use Symfony\Component\WebLink\Link;
/**
* Test case borrowed from https://github.com/php-fig/link/.
*/
class GenericLinkProviderTest extends TestCase
{ public function testCanAddLinksByMethod() { $link =
(new Link()) ->
withHref('http://www.google.com'
) ->
withRel('next'
) ->
withAttribute('me', 'you'
) ;
$provider =
(new GenericLinkProvider()) ->
withLink($link);
$this->
assertContains($link,
$provider->
getLinks());
} public function testCanAddLinksByConstructor() {