Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Conversation

@mbniebergall
Copy link
Contributor

Added tests when setting the skip whitespace option for xml_parser_set_option and tests when setting the target encoding with an invalid value, which triggers the "Unsupported target encoding..." error.

Tests http://gcov.php.net/PHP_7_2/lcov_html/ext/xml/xml.c.gcov.php lines 1604-1606 and 1612-1613.

Credit: PHP TestFest 2017 - Utah PHP User Group (UPHPU)

Copy link
Contributor

@krakjoe krakjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just one call to set skip white option is enough to cover the line, it would appear the two lines create identical coverage.

Similarly, just one call to set the target encoding to something invalid will create the same coverage.

@mbniebergall
Copy link
Contributor Author

@krakjoe I removed the doubled up testing lines per your suggestion.

@petk petk self-assigned this Feb 9, 2019
@petk
Copy link
Contributor

petk commented Feb 10, 2019

Applied via php/php-src@e727fac in the php-src repository to PHP-7.4 and master branches. Thank you @mbniebergall for the pull request and @carusogabriel, @krakjoe for the review.

@petk petk closed this Feb 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants