@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage Expected namespace separator or identifier, got ')' at position 18 in property Doctrine\Tests\Common\Annotations\DummyClassPropertySyntaxError::$foo.
public function testPropertySyntaxErrorContext() {
$reader = $this
->getReader();
$reader
->getPropertyAnnotations(new \ReflectionProperty('Doctrine\\Tests\\Common\\Annotations\\DummyClassPropertySyntaxError', 'foo'));
}