File
- drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Debug/TraceableEventDispatcherTest.php, line 188
Class
- TraceableEventDispatcherTest
Namespace
Symfony\Component\HttpKernel\Tests\Debug
Code
public function testStopwatchCheckControllerOnRequestEvent() {
$stopwatch = $this
->getMockBuilder('Symfony\\Component\\Stopwatch\\Stopwatch')
->setMethods(array(
'isStarted',
))
->getMock();
$stopwatch
->expects($this
->once())
->method('isStarted')
->will($this
->returnValue(false));
$dispatcher = new TraceableEventDispatcher(new EventDispatcher(), $stopwatch);
$kernel = $this
->getHttpKernel($dispatcher, function () {
return new Response();
});
$request = Request::create('/');
$kernel
->handle($request);
}