Closed Sebbo94BY closed 1 year ago
Finally. I hate CI/CD development. It's most of the time a trial-and-error thing. 😅
@ronindesign I could simply merge this, but I would appreciate it, when you could atleast review my code and unittest changes.
This is looking really great, thank you for your time and work on this PR!
This pull request depends on #174, so this should be merged first.
Looks like you merged 0e39749, a8cc7fd from #174 into this PR and close that one, but let me know if I'm missing something.
There is only one failure left on non-english systems, but I'm not sure how this can or should be fixed. 🤔
For the non-English error issue, I think how it fails currently is probably best possible scenario. CI/CD should be tested against English (as I'm not aware of any localization support otherwise.) And so when the local language is not Engilsh, it should be an annoying, but expected failure I suppose. It's unfortunate to not get green across the board, so maybe there might be a better long-term fix in the future.
Thanks again for the labor and contribution!
Yeah, I've merged it - it made sense to combine them. :D
Yeah, regarding the localization, I thought about setting the language as first step in the respective function or something using e.g. https://www.php.net/manual/en/function.setlocale.php, but not sure. I've too less experience with PHPUnit tests regarding best practices.
No problem. You're welcome. :)
This fixes (nearly) all fatal errors / failures. I haven't touched the risky issues.
There is only one failure left on non-english systems, but I'm not sure how this can or should be fixed. 🤔
The test expects the error message
Connection refused
, but on my local machine, it returns a very long and German text. Translated into English, the text would beCould not connect because the target computer refused to connect
, so in general the correct exception message. 😅This pull request depends on #174, so this should be merged first.
Local PHPUnit test result: