tests/ConversionStrategyTest.php
/**
     * If the result is a Response already, we just want to forward it.
     */
If the result is a Response already, we just want to forward it.
If the result is a Response already we just want to forward it .
public function testStrategyForwardsResponse()
    {
        $expectedResponse = $this->createMock(ResponseInterface::class);
        $route = $this->createMockRouteWithCallback($expectedResponse);
        $strategy = new ConversionStrategy();
        $response = $strategy->invokeRouteCallable($route, $this->createMock(ServerRequestInterface::class));
        $this->assertInstanceOf(ResponseInterface::class, $response);
    }
public function testStrategyForwardsResponse ( ) { $ expectedResponse = $ this -> createMock ( ResponseInterface :: class ) ; $ route = $ this -> createMockRouteWithCallback ( $ expectedResponse ) ; $ strategy = new ConversionStrategy ( ) ; $ response = $ strategy -> invokeRouteCallable ( $ route , $ this -> createMock ( ServerRequestInterface :: class ) ) ; $ this -> assertInstanceOf ( ResponseInterface :: class , $ response ) ; }
If the result is a Response already, we just want to forward it.
If the result is a Response already we just want to forward it .