Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for DCOM-106

  • Loading branch information...
commit cc7b613275e15427036d82d445103953006bf0f7 1 parent 30b8cea
@nemekzg nemekzg authored
View
4 lib/Doctrine/Common/Annotations/AnnotationReader.php
@@ -60,7 +60,7 @@ class AnnotationReader implements Reader
'subpackage'=> true, 'name'=> true, 'global'=> true, 'param'=> true,
'return'=> true, 'staticvar'=> true, 'category'=> true, 'staticVar'=> true,
'static'=> true, 'var'=> true, 'throws'=> true, 'inheritdoc'=> true,
- 'inheritDoc'=> true, 'license'=> true, 'todo'=> true,
+ 'inheritDoc'=> true, 'license'=> true, 'todo'=> true, 'TODO'=> true,
'deprec'=> true, 'property' => true, 'method' => true,
'abstract'=> true, 'exception'=> true, 'magic' => true, 'api' => true,
'final'=> true, 'filesource'=> true, 'throw' => true, 'uses' => true,
@@ -69,7 +69,7 @@ class AnnotationReader implements Reader
'Required' => true, 'Attribute' => true, 'Attributes' => true,
'Target' => true, 'SuppressWarnings' => true,
'ingroup' => true, 'code' => true, 'endcode' => true,
- 'package_version' => true,
+ 'package_version' => true, 'fixme' => true
);
/**
View
23 tests/Doctrine/Tests/Common/Annotations/AbstractReaderTest.php
@@ -377,6 +377,16 @@ public function testAnnotationEnumeratorException()
}
/**
+ * @group DCOM-106
+ */
+ public function testIgnoreFixMeAndUpperCaseToDo()
+ {
+ $reader = $this->getReader();
+ $ref = new \ReflectionClass('Doctrine\Tests\Common\Annotations\DCOM106');
+ $reader->getClassAnnotations($ref);
+ }
+
+ /**
* @return AnnotationReader
*/
abstract protected function getReader();
@@ -545,6 +555,16 @@ class DummyClassWithEmail
}
+
+/**
+ * @fixme public
+ * @TODO
+ */
+class DCOM106
+{
+
+}
+
namespace Doctrine\Tests\Common\Annotations\Foo;
/** @Annotation */
@@ -559,5 +579,4 @@ class Name extends \Doctrine\Common\Annotations\Annotation
class Name extends \Doctrine\Common\Annotations\Annotation
{
public $name;
-}
-
+}
Please sign in to comment.
Something went wrong with that request. Please try again.