-
Notifications
You must be signed in to change notification settings - Fork 7.9k
new functions to phpt #880
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
@php-pulls This one can be directly merged in my opinion, can't it? |
👍 to me, that's okey merge! kkk |
👍 |
2 similar comments
👍 |
👍 |
👎 the Travis build failed, the 013.phpt file have the same test of the 012.phpt but with different EXPECT. Both files have the same test code echo addcslashes("zoo['.']","z..A"); And expects differente outputs
The 012.phpt output:
The 013.phpt output:
|
@marcosptf |
👍 |
Hey @marcosptf! PHP places tests for functions into the So I think you should take a look at the existing tests for these functions and see if they're missing test cases and add those (either by editing the tests or adding new files in the right place). Another useful tool is http://gcov.php.net/PHP_5_6/lcov_html/, which contains code coverage information. This can be used to find conditions that have no been tested yet. For example, here is the addcslashes implementation: http://gcov.php.net/PHP_5_6/lcov_html/ext/standard/string.c.gcov.php#3479 You can see that escaping of (The global |
hi @nikic, i would like to thanks for help, like i said on my first comment, this is my first contribution, and i'm happy about it! And i will use your instructions to next contributions. |
Hi @marcosptf |
👍 |
hi @nikic, I has fixed the things that you have suggested. Thanks :-) |
It looks like cases covered in these tests are already covered by tests/strings/add-and-stripcslashes.phpt and tests/strings/bin2hex_basic.phpt |
looks like this one was already merged |
Hello everyone!
this is my first contribution, im very happy for write phpt and help my comunity here in Brasil PHPSP.
i would like a lot that my pull request is merged!
thanks to all
:-)