title: Laravel: Testing routes with custom request headers
body: <p>So the question is simple:</p>
  
  <h2>How to send custom request header, when I testing with Laravel?</h2>
  
  <p>I'm trying to make like so:</p>
  
  <pre><code>$this-&gt;call('POST', '/my/route', ['params' =&gt; 'array'], [], ['X-Custom' =&gt; 'header']);
  </code></pre>
  
  <p>But when I call <code>Request::header('X-Custom')</code> in my controller, I didn't get it.
  Yes, it's available in <code>Request::server('X-Custom')</code>, but it's not what I need.</p>
  
  <p>So I need to get it in <code>Request::header()</code>.</p>
  
  <p>PS: <code>Laravel 4</code></p>