title: Cannot return objects in @dataProvider PHPUnit
body: <p>Is it allowed to return objects from <code>@dataProviders</code> to test methods? </p>
  
  <pre><code>public function iOsMessages()
  {
      return [
          'update available'        =&gt; [1, new UpToDateMessage(), 'pl'],
      ];
  }
  
  /**
   * @test
   * @dataProvider iOsMessages
   */
  public function success_create_message_for_ios(int $appVersion, MobileMessage $message, string $locale)
  {
  (...)
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>The data provider specified for Tests\Tests\Mobile\Classes\AppVersionTest::success_create_message_for_ios is invalid.
    Class 'Mobile\Classes\Messages\UpToDateMessage' not found</p>
  </blockquote>
  
  <p><code>MobileMessage</code> is an interface, imports are correct.</p>