You are here

private function ContainerAwareHttpKernelTest::getResolverMockFor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php \Symfony\Component\HttpKernel\Tests\DependencyInjection\ContainerAwareHttpKernelTest::getResolverMockFor()
3 calls to ContainerAwareHttpKernelTest::getResolverMockFor()
ContainerAwareHttpKernelTest::testHandle in vendor/symfony/http-kernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php
@dataProvider getProviderTypes
ContainerAwareHttpKernelTest::testHandleRestoresThePreviousRequestOnException in vendor/symfony/http-kernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php
@dataProvider getProviderTypes
ContainerAwareHttpKernelTest::testVerifyRequestStackPushPopDuringHandle in vendor/symfony/http-kernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php
@dataProvider getProviderTypes

File

vendor/symfony/http-kernel/Tests/DependencyInjection/ContainerAwareHttpKernelTest.php, line 121

Class

ContainerAwareHttpKernelTest
@group legacy

Namespace

Symfony\Component\HttpKernel\Tests\DependencyInjection

Code

private function getResolverMockFor($controller, $request) {
  $resolver = $this
    ->getMock('Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface');
  $resolver
    ->expects($this
    ->once())
    ->method('getController')
    ->with($request)
    ->will($this
    ->returnValue($controller));
  $resolver
    ->expects($this
    ->once())
    ->method('getArguments')
    ->with($request, $controller)
    ->will($this
    ->returnValue(array()));
  return $resolver;
}