Find a Rector rule
Find the best Rector rule to solve your problem. Searching through 1082 rules.
Found 1 rule. That's the one: Clear
phpunit/phpunit 6
1 match
AddDoesNotPerformAssertionToNonAssertingTestRector
phpunit/phpunit >=6.0
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;
}
}