-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added failing unit test for bad HTTP requests. #2031
Conversation
|
@nickdnk Can you address the PHPCS issues please? |
I'm sorry, but what does that mean? Ian told me to write this test to draw his attention to fixing it. He has an issue open for it, as do I. Testing is not my strong suit. Sent from my iPhone On 18 Nov 2016, at 09.14, Rob Allen <notifications@github.commailto:notifications@github.com> wrote: @nickdnkhttps://github.com/nickdnk Can you address the PHPCS issues please? You are receiving this because you were mentioned. |
@nickdnk If you look in CI section on here, you'll see: "Some checks were not successful". Opening up, you see that this PR failed the Travis checks. Clicking on "Details" takes you to https://travis-ci.org/slimphp/Slim/builds/173057833. Pick the 5.6 one, click into it and scroll to the bottom and you'll see what @dopesong posted earlier. This is the list of errors created by phpcs. Specifically in AppTest.php, there are problems with lines 1988 and 2006. |
Aha okay. I'll have a look at that when I can. This means the actual code is fine but it has to do with new lines, indents and so on, correct? Sent from my iPhone On 18 Nov 2016, at 11.48, Rob Allen <notifications@github.commailto:notifications@github.com> wrote: @nickdnkhttps://github.com/nickdnk If you look in CI section on here, you'll see: "Some checks were not successful". Opening up, you see that this PR failed the Travis checks. Clicking on "Details" takes you to https://travis-ci.org/slimphp/Slim/builds/173057833. Pick the 5.6 one, click into it and scroll to the bottom and you'll see what @dopesonghttps://github.com/dopesong posted earlier. This is the list of errors created by phpcs. Specifically in AppTest.php, there are problems with lines 1988 and 2006. You are receiving this because you were mentioned. |
Aha okay. I'll have a look at that when I can. This means the actual code is fine but it has to do with new lines, indents and so on, correct? Sent from my iPhone On 18 Nov 2016, at 11.48, Rob Allen <notifications@github.commailto:notifications@github.com> wrote: @nickdnkhttps://github.com/nickdnk If you look in CI section on here, you'll see: "Some checks were not successful". Opening up, you see that this PR failed the Travis checks. Clicking on "Details" takes you to https://travis-ci.org/slimphp/Slim/builds/173057833. Pick the 5.6 one, click into it and scroll to the bottom and you'll see what @dopesonghttps://github.com/dopesong posted earlier. This is the list of errors created by phpcs. Specifically in AppTest.php, there are problems with lines 1988 and 2006. — |
Correct - the PHPCS checks are about the way the code is laid out. |
I think it's good now, yes? |
The test is correctly failing, yes :) |
Now we just need @iansltx or someone else to fix it :) |
Can you add the annotation to tell PHPUnit to skip this test? I can then merge it and when @iansltx (or whoever) branches to fix it, they can remove it on their branch. |
Done |
Thanks - the CI passes now :) |
Fixed as part of #2141 |
Hello
As requested I have written a failing unit test to illustrate the issue with an unsupported method used by clients.
Currently this results in a code 500 error on an "out-of-the-box" Slim deployment, which is not ideal.
Issue: #2005