112 : void
113 {
114 $expectedResponse = $this->getMockBuilder(ResponseInterface::class)->getMock();
115 $wrongResponse = $this->getMockBuilder(ResponseInterface::class)->getMock();
116
117 $this->mockResponseFactory->expects($this->once())
118 ->method('create')
119 ->willReturn($expectedResponse, $wrongResponse);
120
121
122
123
124 $response1 = $this->httpState->response();
125
126
127 $response2 = $this->httpState->response();
128
129
130 $this->assertEquals($expectedResponse, $response1);
131 $this->assertEquals($expectedResponse, $response2);
132 }