/**
  * Returns the injection definition from the annotation.
  * @param \Brickoo\Component\Annotation\Annotation $annotation
  * @return \Brickoo\Component\IoC\Definition\InjectionDefinition
  */
 private function getInjectionDefinition(Annotation $annotation)
 {
     $argumentsDefinitions = [];
     foreach ($annotation->getValues() as $argument) {
         $argumentsDefinitions[] = new ArgumentDefinition($argument);
     }
     return new InjectionDefinition($this->getInjectionTarget($annotation), $this->getInjectionTargetName($annotation), new ArgumentDefinitionContainer($argumentsDefinitions));
 }
 /** @covers Brickoo\Component\Annotation\Annotation::getValues */
 public function testGetValues()
 {
     $annotationValues = ["path" => "/"];
     $annotation = new Annotation(Annotation::TARGET_CLASS, "\\SomeClass", "Cache", $annotationValues);
     $this->assertEquals($annotationValues, $annotation->getValues());
 }