ZendTest\Stratigility\MiddlewarePipeTest::testCanComposeResponsePrototype PHP Method

testCanComposeResponsePrototype() public method

    public function testCanComposeResponsePrototype()
    {
        $response = $this->prophesize(Response::class)->reveal();
        $pipeline = new MiddlewarePipe();
        $pipeline->setResponsePrototype($response);
        $this->assertAttributeSame($response, 'responsePrototype', $pipeline);
    }
MiddlewarePipeTest