Lines Matching refs:response
9 $response = new Response(200, ['Content-Type' => 'text/xml']);
10 $this->assertEquals(200, $response->getStatus());
11 $this->assertEquals('OK', $response->getStatusText());
17 $response = new Response();
18 $response->setStatus('402 Where\'s my money?');
19 $this->assertEquals(402, $response->getStatus());
20 $this->assertEquals('Where\'s my money?', $response->getStatusText());
29 $response = new Response(1000);
35 $response = new Response(200, ['Content-Type' => 'text/xml']);
36 $response->setBody('foo');
44 $this->assertEquals($expected, (string)$response);