Codeception / Codeception/module-webdriver

Inconsistent newline characters for Windows

未關閉
#63 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
39
分支
25
PR 合併指標
30 天內沒有已合併 PR

描述

1. Methods `seeInSource` and `seeInPageSource` have different descriptions and run different code paths, but ultimately do the very save comparison. Meaning there should be no `seeInPageSource` method. Please remove.
2. I am trying to use either of them, let's say `seeInSource`. It works fine in PhpBrowser. But it fails for WebDriver. I have found the solution: I could do `str_replace(chr(13), '', $whatIWantToSeeMultiline)` and it will work for WebDriver. **This is the old good \n vs \r\n.** Could you please compare more intelligently, keeping in mind newline may differ?

Webserver is Apache and it's run on same Windows machine, by the way.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。