Permalink
Browse files

DCOM-25 - Fix SetAutoloadAnnotations

  • Loading branch information...
1 parent 8565c90 commit a46c6180f96647fdd66e2c8f2771d61ecebe6a3f @beberlei beberlei committed Oct 31, 2010
@@ -71,16 +71,6 @@ public function __construct(Cache $cache = null, Parser $parser = null)
}
/**
- * Set whether or not to try and autoload annotation classes.
- *
- * @param boolean $bool
- */
- public function setAutoloadAnnotationClasses($bool)
- {
- $this->parser->setAutoloadAnnotationClasses($bool);
- }
-
- /**
* Sets the default namespace that the AnnotationReader should assume for annotations
* with not fully qualified names.
*
@@ -148,12 +148,25 @@ public function testNonAnnotationProblem()
$this->assertType('Doctrine\Tests\Common\Annotations\DummyAnnotation', $annotations['Doctrine\Tests\Common\Annotations\DummyAnnotation']);
}
+ /**
+ * @return AnnotationReader
+ */
public function createAnnotationReader()
{
$reader = new AnnotationReader(new \Doctrine\Common\Cache\ArrayCache);
$reader->setDefaultAnnotationNamespace('Doctrine\Tests\Common\Annotations\\');
return $reader;
}
+
+ /**
+ * @group DCOM-25
+ */
+ public function testSetAutoloadAnnotations()
+ {
+ $reader = $this->createAnnotationReader();
+ $reader->setAutoloadAnnotations(true);
+ $this->assertTrue($reader->getAutoloadAnnotations());
+ }
}
class CustomDummyAnnotationClass {

0 comments on commit a46c618

Please sign in to comment.