Exemplo n.º 1
0
 public function testDoesNotConvertControllerResult()
 {
     $event = $this->createEventMock(array());
     $event->expects($this->never())->method('setResponse');
     $this->listener->onKernelView($event);
     $event = $this->createEventMock(null);
     $event->expects($this->never())->method('setResponse');
     $this->listener->onKernelView($event);
 }
 public function testDoesNotConvertControllerResult()
 {
     $listener = new PsrResponseListener(new HttpFoundationFactory());
     $event = $this->createEventMock(array());
     $event->expects($this->never())->method('setResponse');
     $listener->onKernelView($event);
     $event = $this->createEventMock(null);
     $event->expects($this->never())->method('setResponse');
     $listener->onKernelView($event);
 }