1--TEST--
2Dom\XMLDocument::createEmpty 01
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8Dom\XMLDocument::createEmpty(encoding: "foo");
9
10?>
11--EXPECTF--
12Fatal error: Uncaught ValueError: Dom\XMLDocument::createEmpty(): Argument #2 ($encoding) is not a valid document encoding in %s:%d
13Stack trace:
14#0 %s(%d): Dom\XMLDocument::createEmpty('1.0', 'foo')
15#1 {main}
16  thrown in %s on line %d
17