php-src/ext/dom/tests/DOMImplementation_createDocument_basic.phpt
Nikita Popov 3549f48edc Make createDocument() $namespace nullable
According to the DOM specification, this argument should be
nullable. It's also supposed to be a required argument, but
not changing that at this point.
2021-02-09 12:28:28 +01:00

15 lines
250 B
PHP

--TEST--
DOMImplementation::createDocument()
--SKIPIF--
<?php
include('skipif.inc');
?>
--FILE--
<?php
declare(strict_types=1);
$x = new DOMImplementation();
$doc = $x->createDocument(null, 'html');
echo $doc->saveHTML();
?>
--EXPECT--
<html></html>