$this->httpFoundationFactoryMock =
$factory;
$this->psrResponseSubscriber =
new PsrResponseSubscriber($this->httpFoundationFactoryMock
);
} /**
* Tests altering and finished event.
*
* @covers ::onKernelView
*/
public function testConvertsControllerResult() { $event =
$this->
createEvent($this->
createMock('Psr\Http\Message\ResponseInterface'
));
$this->psrResponseSubscriber->
onKernelView($event);
$this->
assertInstanceOf(Response::
class,
$event->
getResponse());
} /**
* Tests altering and finished event.
*
* @covers ::onKernelView
*/
public function testDoesNotConvertControllerResult() { $event =
$this->
createEvent([]);