1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
--TEST--
Psr\Link\EvolvableLinkProviderInterface
--SKIPIF--
<?php include('skip.inc'); ?>
--FILE--
<?php
use Psr\Link\LinkInterface;
use Psr\Link\LinkProviderInterface;
use Psr\Link\EvolvableLinkProviderInterface;
class MyImpl implements EvolvableLinkProviderInterface {
public function getLinks() {}
public function getLinksByRel($rel) {}
public function withLink(LinkInterface $link) {}
public function withoutLink(LinkInterface $link) {}
}
$ex = new MyImpl();
var_dump($ex instanceof LinkProviderInterface);
var_dump($ex instanceof EvolvableLinkProviderInterface);
--EXPECT--
bool(true)
bool(true)
|