title: How to fake guzzele post request to get response data in laravel
body: <p>In laravel i need to fake guzzlehttp post request.</p>
  
  <pre><code>        try {
              return $client-&gt;request('POST', $url);
          } catch (GuzzleException $e) {
              return $e-&gt;getCode();
          }
  </code></pre>
  
  <p>this request return 401 or success message with some data.</p>
  
  <p>At the moment i need to fake this to call some other methods. How can I do that? </p>
  
  <p>This is the part of my composer file</p>
  
  <pre><code>"laravel/framework": "5.1.*",
  "guzzlehttp/guzzle": "~6.0.0",
  </code></pre>