Beispiel #1
0
 /**
  * testHasSuppressWarningsAnnotationForReturnsTrue
  *
  * @return void
  */
 public function testHasSuppressWarningsAnnotationForReturnsTrue()
 {
     $class = new \PDepend\Source\AST\ASTClass(null);
     $class->setDocComment('/** @SuppressWarnings("PMD") */');
     $rule = $this->getMock('PHP_PMD_AbstractRule');
     $node = new PHP_PMD_Node_Class($class);
     $this->assertTrue($node->hasSuppressWarningsAnnotationFor($rule));
 }