use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ControllerReference;
use Symfony\Component\HttpKernel\Fragment\RoutableFragmentRenderer;
class RoutableFragmentRendererTest extends TestCase
{ /**
* @dataProvider getGenerateFragmentUriData
*/
public function testGenerateFragmentUri($uri,
$controller) { $this->
assertEquals($uri,
$this->
callGenerateFragmentUriMethod($controller, Request::
create('/'
)));
} /**
* @dataProvider getGenerateFragmentUriData
*/
public function testGenerateAbsoluteFragmentUri($uri,
$controller) { $this->
assertEquals('http://localhost'.
$uri,
$this->
callGenerateFragmentUriMethod($controller, Request::
create('/'
), true
));
} public static function getGenerateFragmentUriData() {