title: Can't use assertViewHas method in my test
body: <p>I'm learning Laravel testing and I wish to use <a href="https://laravel.com/docs/5.0/testing#framework-assertions" rel="nofollow noreferrer">Laravel Framework Assertions</a>. </p>
  
  <pre><code>public function __construct()
  {
      $this-&gt;mock = Mockery::mock("Eloquent", "Post");
  }
  
  public function testIndex()
  {
      $this-&gt;mock
         -&gt;shouldReceive('all')
         -&gt;once()
         -&gt;andReturn('foo');
  
      $this-&gt;app-&gt;instance('Post', $this-&gt;mock);
      $this-&gt;call('GET', 'posts');
      $this-&gt;assertViewHas('posts'); // This method seem can't be find 
  }
  </code></pre>
  
  <p>It seems that <code>assertViewHas</code> method does not exists because my IDE can't autocomplete that method It can't find it, but when I search in the Laravel 5.5 API I find that method in the <a href="https://laravel.com/api/5.5/Illuminate/Foundation/Testing/TestResponse.html#method_assertViewHas" rel="nofollow noreferrer">assertViewHas</a> method in the <code>TestResponse</code> class in  <code>Illuminate/Foundation/Testing</code> namespace.
  How can I solve this problem. </p>
  
  <p>Another problem is that in this test I'm using mockery to mock my <code>Post</code> model, but a get some error when I run <code>vendor\bin\phpunit</code>in my terminal. </p>
  
  <p><a href="https://i.stack.imgur.com/hhzAU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hhzAU.png" alt="PHP unit Error "></a></p>
  
  <p>I don't find where the <code>array_merge()</code> is used in my test</p>