summaryrefslogtreecommitdiff
path: root/ext/xsl/tests/xsltprocessor_hasExsltSupport_wrongparam_001.phpt
blob: b5c287f891d816d79236375099855806fcfdbcdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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 arguments, 1 given