title: Mocking Input Facade in Laravel 4
body: <p>I am using this is a Form service.</p>
  
  <pre><code>$files = Input::file('my_file');
  </code></pre>
  
  <p>I'm trying to test it, but I can't seem to properly mock Input. The docs say not to mock the Request facade. There is no mention of the Input facade, even though they both point to the same class in the IOC container. </p>
  
  <p>I've tried several methods, but they don't work. Any ideas?</p>
  
  <pre><code>    $mockInput = Mockery::mock('\Illuminate\Http\Request');
      $mockInput-&gt;shouldReceive('file')-&gt;andReturn($my_test_data);
      Input::swap($mockInput);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    Input::shouldReceive('file')-&gt;andReturn($my_test_data);
  </code></pre>