Skip to content

Commit

Permalink
update test template [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 12, 2019
1 parent 412c86c commit 6818642
Showing 1 changed file with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,20 @@ use Rector\Testing\PHPUnit\AbstractRectorTestCase;

final class _Name_Test extends AbstractRectorTestCase
{
public function test(): void
/**
* @dataProvider provideDataForTest()
*/
public function test(string $file): void
{
$this->doTestFiles([
__DIR__ . '/Fixture/fixture.php.inc'
]);
$this->doTestFile($file);
}

/**
* @return string[]
*/
public function provideDataForTest(): iterable
{
yield [__DIR__ . '/Fixture/fixture.php.inc'];
}

protected function getRectorClass(): string
Expand Down

0 comments on commit 6818642

Please sign in to comment.