ScenarioToTestAnnotationRector
Change @scenario annotation to @test in a test class
/**
- * @scenario
+ * @test
*/
public function someMethod()
{
}
Configure your rector.php:
<?php
use Rector\Config\RectorConfig;
use Rector\PHPUnit\PHPUnit70\Rector\ClassMethod\ScenarioToTestAnnotationRector;
return RectorConfig::configure()
->withRules([
ScenarioToTestAnnotationRector::class,
]);
PACKAGE:
phpunit/phpunit >=7.0