phpspec/phpspec — pull request #148 by stof (2013-07-04 17:17:56+00:00)
Title: Fixed the replacement of Windows line endings in the docComment

This allows using the phpdoc to define the type of collaborators for a codebase using LF line-endings and a Windows runtime.
The previous conversion was only handling the case of a CRLF codebase used on a Unix runtime (which is far less common as almost everybody uses LF line endings in the codebase, expect when all devs are using Windows)

The phpspec suite is running fine on Windows without this fix because it uses typehints for collaborators. However, I got lots of failures when running phpspec on the Prophecy codebase which uses doc comments: as they were not parsed properly, all doubles are extending stdClass instead of extending the appropriate class (which of course fails because of undefined methods)