class DCOM55Test

@group

Hierarchy

  • class \Doctrine\Tests\Common\Annotations\Ticket\DCOM55Test extends \Doctrine\Tests\Common\Annotations\Ticket\PHPUnit_Framework_TestCase

Expanded class hierarchy of DCOM55Test

File

drupal/core/vendor/doctrine/common/tests/Doctrine/Tests/Common/Annotations/Ticket/DCOM55Test.php, line 10

Namespace

Doctrine\Tests\Common\Annotations\Ticket
View source
class DCOM55Test extends \PHPUnit_Framework_TestCase {

  /**
   * @expectedException Doctrine\Common\Annotations\AnnotationException
   * @expectedExceptionMessage [Semantical Error] The class "Doctrine\Tests\Common\Annotations\Fixtures\Controller" is not annotated with @Annotation. Are you sure this class can be used as annotation? If so, then you need to add @Annotation to the _class_ doc comment of "Doctrine\Tests\Common\Annotations\Fixtures\Controller". If it is indeed no annotation, then you need to add @IgnoreAnnotation("Controller") to the _class_ doc comment of class Doctrine\Tests\Common\Annotations\Ticket\Dummy.
   */
  public function testIssue() {
    $class = new \ReflectionClass(__NAMESPACE__ . '\\Dummy');
    $reader = new \Doctrine\Common\Annotations\AnnotationReader();
    $reader
      ->getClassAnnotations($class);
  }
  public function testAnnotation() {
    $class = new \ReflectionClass(__NAMESPACE__ . '\\DCOM55Consumer');
    $reader = new \Doctrine\Common\Annotations\AnnotationReader();
    $annots = $reader
      ->getClassAnnotations($class);
    $this
      ->assertEquals(1, count($annots));
    $this
      ->assertInstanceOf(__NAMESPACE__ . '\\DCOM55Annotation', $annots[0]);
  }
  public function testParseAnnotationDocblocks() {
    $class = new \ReflectionClass(__NAMESPACE__ . '\\DCOM55Annotation');
    $reader = new \Doctrine\Common\Annotations\AnnotationReader();
    $annots = $reader
      ->getClassAnnotations($class);
    $this
      ->assertEquals(0, count($annots));
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DCOM55Test::testAnnotation public function
DCOM55Test::testIssue public function @expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage [Semantical Error] The class "Doctrine\Tests\Common\Annotations\Fixtures\Controller" is not annotated with . Are you sure this class can be used as…
DCOM55Test::testParseAnnotationDocblocks public function