title: Test contents of return array in PHPSpec
body: <p>Say I have this method of a RuleFactory:</p>
  
  <pre><code>public function makeFromArray($rules)
  {
      $array = [];
      foreach ($rules as $rule) {
          $array[] = new Rule($rule[0], $rule[1]);
      }
  
      return $array;
  }
  </code></pre>
  
  <p>I want to test that the return array contains Rule elements. Here is my test:</p>
  
  <pre><code>function it_should_create_multiple_rules_at_once()
  {
      $rules = [
          ['required', 'Please provide your first name'],
          ['alpha', 'Please provide a valid first name']
      ];
  
      $this-&gt;makeFromArray($rules)-&gt;shouldHaveCount(2);
      $this-&gt;makeFromArray($rules)[0]-&gt;shouldBeInstanceOf('Rule');
      $this-&gt;makeFromArray($rules)[1]-&gt;shouldBeInstanceOf('Rule');
  }
  </code></pre>
  
  <p>But this does not work, it throws an error in PHPSpec. </p>
  
  <p>The strange thing is that I can do this just fine on other methods that return arrays, but for some reason I cannot do that here.</p>
  
  <p>The error I get is this:</p>
  
  <pre><code>! it should create multiple rules at once
        method [array:2] not found
  </code></pre>
  
  <p>How do I test the contents of this return array, WITHOUT creating my own inline matcher?</p>