-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
add new test to uncoverage standard dns function. #1806
Conversation
was created a new function to dns standard module;
Needs skipif for online tests. |
Hello @krakjoe how are you? thanks for your comment! |
ext/standard/tests/checkdnsrr.phpt
Outdated
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br | ||
--SKIPIF-- | ||
<?php | ||
if (phpversion() < "5.3.0") { |
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.
Same as my comment to the hash tests, no version check needed here
ext/standard/tests/checkdnsrr.phpt
Outdated
<?php | ||
if (phpversion() < "5.3.0") { | ||
die('SKIP php version so lower.'); | ||
} |
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.
Like @krakjoe said, needs to test for online tests here
ext/standard/tests/checkdnsrr.phpt
Outdated
?> | ||
--FILE-- | ||
<?php | ||
$serverUrl = "yahoo.com"; |
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.
Could you please use php.net here? Then we don't rely on external services for which we do not have any control over
ext/standard/tests/checkdnsrr.phpt
Outdated
--EXPECTF-- | ||
Warning: checkdnsrr() expects at least %d parameter, %i given in %s on line %d | ||
NULL | ||
bool(%s) |
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.
Are these values not reliable for bugs.php.net? If so then a baked in bool(true) or bool(false) should be fine? (I'm not entirely into how this function works entirely)
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.
okey
i'll test it before in my computer and answer to you!
Thanks!!!
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.
Thank you, once you have done that then the test should be good enough to committed, thanks for your work!
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.
@KalleZ
Thank you about the explanation !!!
ext/standard/tests/checkdnsrr.phpt
Outdated
bool checkdnsrr ( string $host [, string $type = "MX" ] ); | ||
--CREDITS-- | ||
marcosptf - <marcosptf@yahoo.com.br> - @phpsp - sao paulo - br | ||
--FILE-- |
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.
This needs a SKIPIF section for online tests like @krakjoe mentioned:
if (getenv("SKIP_ONLINE_TESTS")) { die('skip: online test'); }
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.
@KalleZ
done!
Again, |
@krakjoe |
Hi @krakjoe Thanks!!!! |
Merged c7f45aa Thanks. |
was created a new function to dns standard module;