public function testPOST() { $request = new Request('POST', 'http://local.example', [], Psr7\stream_for('foo=bar&hello=world')); $curl = $this->curlFormatter->format($request); $this->assertContains("-d 'foo=bar&hello=world'", $curl); }