title: Laravel 5 Unit Testing and Namespacing
body: <p>I'm running into a few issues regarding PHPUnit in Laravel 5 with Namespacing.  I'm attempting to do a simple test on one of my routes, which of course calls a Model, but I'm getting an unexpected error when it makes the call.  </p>
  
  <blockquote>
    <p>PHP Fatal error:  Class 'Eloquent' not found in
    /home/app/Models/User.php on line 10</p>
  </blockquote>
  
  <p>Here is the relevant code block from <code>User.php</code>  </p>
  
  <pre><code>&lt;?php
  
  use Laravel\Cashier\Billable;
  use Laravel\Cashier\Contracts\Billable as BillableContract;
  use Illuminate\Auth\Authenticatable;
  use Illuminate\Auth\Passwords\CanResetPassword;
  use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  
  class User extends \Eloquent implements AuthenticatableContract, CanResetPasswordContract, BillableContract {
  </code></pre>
  
  <p>It appears that I'm having some issues with Namespacing in the Testing environment.  I do not want to change my Model, as it works precisely as I'd like it to with my application.    </p>
  
  <p>How can I make the PHPUnit environment interact with my application without making direct changes to the application?</p>