1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Files
archived-php-src/ext/xmlwriter/tests/xmlwriter_open_uri_error_001.phpt
T
2020-09-01 14:22:19 +02:00

19 lines
417 B
PHP

--TEST--
xmlwriter_open_uri with empty string as parameter
--SKIPIF--
<?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
--FILE--
<?php
try {
xmlwriter_open_uri('');
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--CREDITS--
Koen Kuipers koenk82@gmail.com
Theo van der Zee
#Test Fest Utrecht 09-05-2009
--EXPECT--
xmlwriter_open_uri(): Argument #1 ($uri) cannot be empty