When running the unit tests on Windows, these assertions would fail because in the old situation it was looking for PHP_EOL which returns \r\n while the code is looking for \n.
Test instructions
Setup the Joomla test suite on your Windows system and run this test. You will get 3 failures. Apply the patch and the failures are gone.
As Travis also is fine with it. --> RTC Thanks ;)
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8007.