1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 21:22:13 +02:00
Files
archived-php-src/ext/xml/tests/xml_parser_get_option_variation4.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

19 lines
354 B
PHP

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