Open karolhor opened 9 years ago
This should be fixed with class refactor mentioned in #5
Maybe it's good time to implement a way for dealing with our company RFC for class coverage to respect @covers on test methods (BC) or only @covers on class PhpDocBlock
/**
* Test example
* @covers Foo/Bar/BazClass
*/
class BazClassTest extends \PHPUnit_Framework_TestCase
{
}
After updating Symfony2 standard to PHPCS 2.x searching for @covers tag stopped working.
Example class:
PHPCS 1.5.6 + Symfony2 (86297e573408eab1fbedf1231b3d0cc8864a8417) result:
PHPCS 2.3.2 + Symfony2 (50249b9c3653c34a5af623cfb5d44910fe93cb5c - current master)
This is coused by T_DOC_COMMENT. In 2.x PhpDocBlock has new tokens (they are more detailed).
So mentioned above token should be replaced with T_DOC_COMMENT_CLOSE_TAG.