Adds a default @coversNothing
annotation to PHPUnit test classes that have
no @covers*
annotation.
--- Original
+++ New
<?php
+
+/**
+ * @coversNothing
+ */
final class MyTest extends \PHPUnit_Framework_TestCase
{
public function testSomeTest()
{
$this->assertSame(a(), b());
}
}
The rule is part of the following rule set:
- @PhpCsFixer
- Using the @PhpCsFixer rule set will enable the
php_unit_test_class_requires_covers
rule.