public function DocParserTest::testNotAnAnnotationClassIsIgnoredWithoutWarning in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php \Drupal\Tests\Component\Annotation\Doctrine\DocParserTest::testNotAnAnnotationClassIsIgnoredWithoutWarning()
- 9 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 1005
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);
}