php-src/ext/xml/tests/xml_parser_set_option_variation5.phpt
Nikita Popov 39131219e8
Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

18 lines
356 B
PHP

--TEST--
xml_parser_set_option() - Test invalid parameter
--EXTENSIONS--
xml
--FILE--
<?php
$xmlParser = xml_parser_create();
try {
xml_parser_set_option($xmlParser, 42, 1);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
xml_parser_set_option(): Argument #2 ($option) must be a PHP_XML_OPTION_* constant