public function DocParserTest::testReservedKeywordsInAnnotations

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/DocParserTest.php, line 1062

Class

DocParserTest

Namespace

Doctrine\Tests\Common\Annotations

Code

public function testReservedKeywordsInAnnotations() {
  $parser = $this
    ->createTestParser();
  $result = $parser
    ->parse('@Doctrine\\Tests\\Common\\Annotations\\True');
  $this
    ->assertTrue($result[0] instanceof True);
  $result = $parser
    ->parse('@Doctrine\\Tests\\Common\\Annotations\\False');
  $this
    ->assertTrue($result[0] instanceof False);
  $result = $parser
    ->parse('@Doctrine\\Tests\\Common\\Annotations\\Null');
  $this
    ->assertTrue($result[0] instanceof Null);
  $result = $parser
    ->parse('@True');
  $this
    ->assertTrue($result[0] instanceof True);
  $result = $parser
    ->parse('@False');
  $this
    ->assertTrue($result[0] instanceof False);
  $result = $parser
    ->parse('@Null');
  $this
    ->assertTrue($result[0] instanceof Null);
}