Find the best Rector rule to solve your problem. Searching through 1011 rules.
Found 1 rule. That's the one:
Tests without assertion will have #[DoesNotPerformAssertions] attribute, or @doesNotPerformAssertions annotation on PHPUnit below 10
use PHPUnit\Framework\TestCase;
class SomeClass extends TestCase
{
+ #[\PHPUnit\Framework\Attributes\DoesNotPerformAssertions]
public function test()
{
$nothing = 5;
}
}