public function testPost() { $response = $this->client->post('http://localhost:8080/yo', 'boo', ['Foo: Bar']); $server = $this->getRequestData($response); $this->assertEquals('/yo', $server['uri']); $this->assertEquals('Bar', $server['headers']['Foo']); $this->assertEquals('POST', $server['method']); $this->assertEquals('boo', $server['raw_post']); }