From d9a96629fe33d7b058bb8324ed374cd405be5d4a Mon Sep 17 00:00:00 2001 From: Symeon Charalabides Date: Wed, 22 Apr 2020 15:33:22 +0200 Subject: [PATCH] Tests for the default case of the parameter of xml_parser_get_option() and xml_parser_set_option(). These cases are, as of now, not being tested. --- .../xml_parser_get_option_variation4.phpt | 19 +++++++++++++++++++ .../xml_parser_set_option_variation5.phpt | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ext/xml/tests/xml_parser_get_option_variation4.phpt create mode 100644 ext/xml/tests/xml_parser_set_option_variation5.phpt diff --git a/ext/xml/tests/xml_parser_get_option_variation4.phpt b/ext/xml/tests/xml_parser_get_option_variation4.phpt new file mode 100644 index 0000000000..9b3c773627 --- /dev/null +++ b/ext/xml/tests/xml_parser_get_option_variation4.phpt @@ -0,0 +1,19 @@ +--TEST-- +xml_parser_get_option() - Test parameter not set +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: xml_parser_get_option(): Unknown option in %s on line %d +bool(false) diff --git a/ext/xml/tests/xml_parser_set_option_variation5.phpt b/ext/xml/tests/xml_parser_set_option_variation5.phpt new file mode 100644 index 0000000000..0ef45d50c6 --- /dev/null +++ b/ext/xml/tests/xml_parser_set_option_variation5.phpt @@ -0,0 +1,19 @@ +--TEST-- +xml_parser_set_option() - Test invalid parameter +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: xml_parser_set_option(): Unknown option in %s on line %d +bool(false) -- 2.50.1