public function DocParserTest::testNotAnAnnotationClassIsIgnoredWithoutWarning in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php \Drupal\Tests\Component\Annotation\Doctrine\DocParserTest::testNotAnAnnotationClassIsIgnoredWithoutWarning()
- 10 core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php \Drupal\Tests\Component\Annotation\Doctrine\DocParserTest::testNotAnAnnotationClassIsIgnoredWithoutWarning()
@group DCOM-168
File
- core/
tests/ Drupal/ Tests/ Component/ Annotation/ Doctrine/ DocParserTest.php, line 1008
Class
- DocParserTest
- @coversDefaultClass \Drupal\Component\Annotation\Doctrine\DocParser
Namespace
Drupal\Tests\Component\Annotation\DoctrineCode
public function testNotAnAnnotationClassIsIgnoredWithoutWarning() {
$parser = new DocParser();
$parser
->setIgnoreNotImportedAnnotations(true);
$parser
->setIgnoredAnnotationNames(array(
'PHPUnit_Framework_TestCase' => true,
));
$result = $parser
->parse('@PHPUnit_Framework_TestCase');
$this
->assertCount(0, $result);
}