PHPUnit annotations should be a FQCNs including a root namespace.
--- Original
+++ New
<?php
final class MyTest extends \PHPUnit_Framework_TestCase
{
/**
- * @expectedException InvalidArgumentException
- * @covers Project\NameSpace\Something
- * @coversDefaultClass Project\Default
- * @uses Project\Test\Util
+ * @expectedException \InvalidArgumentException
+ * @covers \Project\NameSpace\Something
+ * @coversDefaultClass \Project\Default
+ * @uses \Project\Test\Util
*/
public function testSomeTest()
{
}
}
The rule is part of the following rule sets: