@expectedException Doctrine\Common\Annotations\AnnotationException @expectedExceptionMessage Expected namespace separator or identifier, got ')' at position 18 in method Doctrine\Tests\Common\Annotations\DummyClassMethodSyntaxError::foo().
public function testMethodSyntaxErrorContext() {
$reader = $this
->getReader();
$reader
->getMethodAnnotations(new \ReflectionMethod('Doctrine\\Tests\\Common\\Annotations\\DummyClassMethodSyntaxError', 'foo'));
}