. * */ namespace OC\AppFramework\Utility; class MethodAnnotationReaderTest extends \PHPUnit_Framework_TestCase { /** * @Annotation */ public function testReadAnnotation(){ $reader = new MethodAnnotationReader('\OC\AppFramework\Utility\MethodAnnotationReaderTest', 'testReadAnnotation'); $this->assertTrue($reader->hasAnnotation('Annotation')); } /** * @Annotation * @param test */ public function testReadAnnotationNoLowercase(){ $reader = new MethodAnnotationReader('\OC\AppFramework\Utility\MethodAnnotationReaderTest', 'testReadAnnotationNoLowercase'); $this->assertTrue($reader->hasAnnotation('Annotation')); $this->assertFalse($reader->hasAnnotation('param')); } }