private function getPropertyParserBuilder(\ReflectionProperty $property) { $propertyParserBuilder = new PropertyParserBuilder($property->getName()); foreach ($this->annotationReader->getAnnotationsFromProperty($property) as $propertyAnnotation) { $this->annotationParserFactory->getAnnotationParserFor($propertyAnnotation)->execute($propertyAnnotation, $propertyParserBuilder); } return $propertyParserBuilder; }
/** * @test */ public function returnParseAsParserForParseAsAnnotation() { $parser = $this->factory->getAnnotationParserFor(new ParseAs()); $this->assertInstanceOf(ParseAsAnnotationParser::class, $parser); }