-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Case test for curl_multi_info_read() function #1922
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
Conversation
--FILE-- | ||
<?php | ||
|
||
//CREATE RESOURCES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should add a comment, when someone reading the code needs information about things not already obvious from the code.
writing something like
// this line will init curl
$c = curl_init();
does not provide more information.
http://gcov.php.net/viewer.php?version=PHP_HEAD&func=tested_functions This indicates that this function as not having coverage. This is the QA On Wed, May 25, 2016 at 6:21 AM, marcosptf notifications@github.com wrote:
|
this is the official link, but need to see if don't have another PR open to there function, to don't duplicate test. |
Is there a case test I could help with that you can suggest, or should I go On Wed, May 25, 2016 at 10:03 AM, marcosptf notifications@github.com
|
@RyanNerd you are doing very well, just see what the Travis is boring and lets go with this test! 👍 |
Any reason why I was included in #1922 (comment)? Maybe someone else should have been included. |
I'd prefer this test over PR #1809, mainly because it's testing against a local server and as such doesn't depend on an external website, and because the expectations are more meaningful. The failing Travis check appears to be unrelated to this PR. |
@cmb69 i wish Y! never die! cross fingers :-) |
Status on this PR? |
Two issues:
Otherwise the test is good to merge (I'd prefer to have it in PHP-7.0 also). |
@@ -0,0 +1,58 @@ | |||
--TEST-- | |||
Test function curl_multi_info_read() by calling it with its required argument | |||
--CREDITS-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add SKIPIF here - look at other CURL tests as an example. Also, please move to ext/curl/tests/
PR #1809 was merged, so closing this one. |
Test case for the curl_multi_info_read() function.
Tests required parameters only.