@dataProvider getAnnotationVarTypeProviderValid
public function testAnnotationWithVarType($attribute, $value) {
$parser = $this
->createTestParser();
$context = 'property SomeClassName::$invalidProperty.';
$docblock = sprintf('@Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationWithVarType(%s = %s)', $attribute, $value);
$parser
->setTarget(Target::TARGET_PROPERTY);
$result = $parser
->parse($docblock, $context);
$this
->assertTrue(sizeof($result) === 1);
$this
->assertInstanceOf('Doctrine\\Tests\\Common\\Annotations\\Fixtures\\AnnotationWithVarType', $result[0]);
$this
->assertNotNull($result[0]->{$attribute});
}