eZ\Bundle\EzPublishRestBundle\Tests\EventListener\ResponseListenerTest::onKernelView PHP Method

onKernelView() protected method

protected onKernelView ( $method, $event )
    protected function onKernelView($method, $event)
    {
        $this->getVisitorDispatcherMock()->expects($this->once())->method('dispatch')->with($this->getRequestMock(), $this->eventValue)->will($this->returnValue($this->response));
        $event->expects($this->once())->method('setResponse')->with($this->response);
        $this->getEventListener()->{$method}($event);
    }