From a585d1b053b8d8d153473274fcae4e6a4a31b706 Mon Sep 17 00:00:00 2001 From: Symeon Charalabides Date: Thu, 22 Apr 2021 23:08:24 +0100 Subject: [PATCH] simplexml_import_dom() - Basic test on invalid nodetype error --- .../tests/simplexml_import_dom_basic.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ext/simplexml/tests/simplexml_import_dom_basic.phpt diff --git a/ext/simplexml/tests/simplexml_import_dom_basic.phpt b/ext/simplexml/tests/simplexml_import_dom_basic.phpt new file mode 100644 index 0000000000000..7efe801ead53a --- /dev/null +++ b/ext/simplexml/tests/simplexml_import_dom_basic.phpt @@ -0,0 +1,18 @@ +--TEST-- +simplexml_import_dom() - Basic test on invalid nodetype error +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: simplexml_import_dom(): Invalid Nodetype to import in %s on line %d + +Fatal error: Arginfo / zpp mismatch during call of simplexml_import_dom() in %s on line %d