Example:
/**
* @expectedException
*/
public function testFooBar() {
...
}
Trying to use @Inject on a file containing such annotations will cause an error. This is because Doctrine's annotation reader tries to read ALL annotations in the file.
There is now a SimpleAnnotationReader that allows to read only specific annotations, so that's a solution.
Furthermore, this alternate reader makes the import (use DI\Annotation\Inject) optional, which is awesome.