]> granicus.if.org Git - php/commitdiff
added XFAIL test for bug #69753
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 3 Jun 2015 21:14:23 +0000 (23:14 +0200)
committerAnatol Belski <ab@php.net>
Mon, 8 Jun 2015 07:40:04 +0000 (09:40 +0200)
ext/libxml/tests/bug69753.phpt [new file with mode: 0644]
ext/libxml/tests/bug69753.xml [new file with mode: 0644]

diff --git a/ext/libxml/tests/bug69753.phpt b/ext/libxml/tests/bug69753.phpt
new file mode 100644 (file)
index 0000000..693e024
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+Bug #69753 - libXMLError::file contains invalid URI
+--XFAIL--
+Awaiting upstream fix: https://bugzilla.gnome.org/show_bug.cgi?id=750365
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
+?>
+--FILE--
+<?php
+libxml_use_internal_errors(true);
+$doc = new DomDocument();
+$doc->load(__DIR__ . '/bug69753.xml');
+$error = libxml_get_last_error();
+var_dump($error->file);
+?>
+--EXPECTF--
+string(%d) "file:///%s/ext/libxml/tests/bug69753.xml"
diff --git a/ext/libxml/tests/bug69753.xml b/ext/libxml/tests/bug69753.xml
new file mode 100644 (file)
index 0000000..63b18d5
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<root>
+    <sub>
+</root>