public function testGetAnnotations() { $reflectedMethod = new MethodReflection('TRex\\Reflection\\resources\\Foo', 'getBar'); $this->assertInstanceOf('TRex\\Annotation\\Annotations', $reflectedMethod->getAnnotations()); $this->assertSame('test', $reflectedMethod->getAnnotations()->get('tag')->first()); }