1<?php 2use PHPUnit\Framework\TestCase; 3 4class Issue2380Test extends TestCase 5{ 6 /** 7 * @dataProvider generatorData 8 */ 9 public function testGeneratorProvider($data) 10 { 11 $this->assertNotEmpty($data); 12 } 13 14 /** 15 * @return Generator 16 */ 17 public function generatorData() 18 { 19 yield ['testing']; 20 } 21} 22