title: Getting different status code using Laravel PHPUnit
body: <ul>
  <li>Laravel 5.0 </li>
  <li>PHPUnit 4.8.24</li>
  </ul>
  
  <p>If I visit my homepage route('/') in browser chrome shows me <strong>status-code 200</strong> OK</p>
  
  <p>But when I check with PHPUNIT </p>
  
  <pre><code>$response = $this-&gt;call( 'GET', '/' );
  var_dump( $response-&gt;getStatusCode() );
  </code></pre>
  
  <p>It returns <strong>int(500)</strong> why?</p>