title: unittest laravel caching issue
body: <p>I am using laravel 4 and created a class under its own namespace. Within this class there's a method that retrieves data and caches it. I also wrote a very small unit test to check if caching works. For some reason, caching does not work when unit testing, but does work when accessing through browser. I even modified <code>app/config/testing/cache.php</code> driver to use apc instead of array and it still doesn't work.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;?php namespace site;
  use Cache;
  
  class UserController {
      public function testCaching( )
      {
          Cache::put('test', 'testing', 1);
          if (Cache::has('test')) die("YES: " . Cache::get('test')); die("NO");
      }
  
  }
  </code></pre>
  
  <p>The <code>routes.php</code> file (works through browser, result: 'YES testing'):</p>
  
  <pre><code>Route::get('test-caching', 'site\UserController@register');
  </code></pre>
  
  <p>The test (does not work with phpunit, result: 'NO'):</p>
  
  <pre><code>&lt;?php namespace site;
  use Illuminate\Foundation\Testing\TestCase;
  class SiteTest extends TestCase {
      /** @test */
      public function it_caches_vendor_token()
      {   
          $user = new UserController();
          $user-&gt;testCaching();
      }
  }
  </code></pre>
  
  <p>Did anyone else experience this problem? Any solutions?</p>