1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt
Máté Kocsis 9d0eccd980 Perform some maintenance work on the XSL extension
Added stubs, fixed some ZPP, and changed PHP_FALIASes to PHP_METHODs.
Closes GH-5241
2020-03-10 11:41:15 +01:00

18 lines
485 B
PHP

--TEST--
Check XSLTProcessor::hasExsltSupport() with 1 parameter
--CREDITS--
Rodrigo Prado de Jesus <royopa [at] gmail [dot] com>
--SKIPIF--
<?php extension_loaded('xsl') or die('skip xsl extension is not available'); ?>
--FILE--
<?php
$proc = new XSLTProcessor();
try {
$proc->hasExsltSupport('stringValue');
} catch (ArgumentCountError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
XSLTProcessor::hasExsltSupport() expects exactly 0 parameters, 1 given