/** * Method annotations test. * @return void */ public function testMethodAnnotations() { $rm = new ReflectionMethod('TestClass', 'bar'); $tmp = Annotations::getAll($rm); $this->assertEquals('admin', $tmp["RolesAllowed"][0][0]); $this->assertEquals('web editor', $tmp["RolesAllowed"][0][1]); }