You are here

public function DocParserTest::testNotAnAnnotationClassIsIgnoredWithoutWarning in Drupal 9

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

Class

DocParserTest
@coversDefaultClass \Drupal\Component\Annotation\Doctrine\DocParser

Namespace

Drupal\Tests\Component\Annotation\Doctrine

Code

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);
}