Add failing test for DDC-2785

Add a failing test for

http://www.doctrine-project.org/jira/browse/DDC-2785
Could you fix the CS here? We follow most of PSR-2