You are here

protected function TraceableEventDispatcherTest::getHttpKernel in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/Debug/TraceableEventDispatcherTest.php \Symfony\Component\HttpKernel\Tests\Debug\TraceableEventDispatcherTest::getHttpKernel()
3 calls to TraceableEventDispatcherTest::getHttpKernel()
TraceableEventDispatcherTest::testStopwatchCheckControllerOnRequestEvent in vendor/symfony/http-kernel/Tests/Debug/TraceableEventDispatcherTest.php
TraceableEventDispatcherTest::testStopwatchSections in vendor/symfony/http-kernel/Tests/Debug/TraceableEventDispatcherTest.php
TraceableEventDispatcherTest::testStopwatchStopControllerOnRequestEvent in vendor/symfony/http-kernel/Tests/Debug/TraceableEventDispatcherTest.php

File

vendor/symfony/http-kernel/Tests/Debug/TraceableEventDispatcherTest.php, line 109

Class

TraceableEventDispatcherTest

Namespace

Symfony\Component\HttpKernel\Tests\Debug

Code

protected function getHttpKernel($dispatcher, $controller) {
  $resolver = $this
    ->getMock('Symfony\\Component\\HttpKernel\\Controller\\ControllerResolverInterface');
  $resolver
    ->expects($this
    ->once())
    ->method('getController')
    ->will($this
    ->returnValue($controller));
  $resolver
    ->expects($this
    ->once())
    ->method('getArguments')
    ->will($this
    ->returnValue(array()));
  return new HttpKernel($dispatcher, $resolver);
}