1--TEST--
2xml_parser_get_option() - Test parameter not set
3--SKIPIF--
4<?php
5if (!extension_loaded('xml')) {
6    exit('Skip - XML extension not loaded');
7}
8?>
9--FILE--
10<?php
11
12$xmlParser = xml_parser_create();
13
14try {
15    xml_parser_get_option ($xmlParser, 42);
16} catch (ValueError $exception) {
17    echo $exception->getMessage() . "\n";
18}
19
20?>
21--EXPECT--
22xml_parser_get_option(): Argument #2 ($option) must be a PHP_XML_OPTION_* constant
23