You are here

private function RoutableFragmentRendererTest::callGenerateFragmentUriMethod in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\RoutableFragmentRendererTest::callGenerateFragmentUriMethod()
4 calls to RoutableFragmentRendererTest::callGenerateFragmentUriMethod()
RoutableFragmentRendererTest::testGenerateAbsoluteFragmentUri in vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php
@dataProvider getGenerateFragmentUriData
RoutableFragmentRendererTest::testGenerateFragmentUri in vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php
@dataProvider getGenerateFragmentUriData
RoutableFragmentRendererTest::testGenerateFragmentUriWithARequest in vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php
RoutableFragmentRendererTest::testGenerateFragmentUriWithNonScalar in vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php
@expectedException \LogicException @dataProvider getGenerateFragmentUriDataWithNonScalar

File

vendor/symfony/http-kernel/Tests/Fragment/RoutableFragmentRendererTest.php, line 74

Class

RoutableFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

private function callGenerateFragmentUriMethod(ControllerReference $reference, Request $request, $absolute = false) {
  $renderer = $this
    ->getMockForAbstractClass('Symfony\\Component\\HttpKernel\\Fragment\\RoutableFragmentRenderer');
  $r = new \ReflectionObject($renderer);
  $m = $r
    ->getMethod('generateFragmentUri');
  $m
    ->setAccessible(true);
  return $m
    ->invoke($renderer, $reference, $request, $absolute);
}