diff options
author | Remi Collet <remi@remirepo.net> | 2020-02-21 11:43:42 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-02-21 11:43:42 +0100 |
commit | 893d698148880b804275a72c2c71ec3c2e7c9a00 (patch) | |
tree | 23ae0599c6d0c2779161b2c9ebc9ea0d258ae08f /68dc8c677e43e8431f8a109a289d3a4c5195e0f3.patch | |
parent | a6a15ea7d0e949e1fd20615305f7ff434a34a186 (diff) |
add upstream patch for test suitephp70
Diffstat (limited to '68dc8c677e43e8431f8a109a289d3a4c5195e0f3.patch')
-rw-r--r-- | 68dc8c677e43e8431f8a109a289d3a4c5195e0f3.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/68dc8c677e43e8431f8a109a289d3a4c5195e0f3.patch b/68dc8c677e43e8431f8a109a289d3a4c5195e0f3.patch new file mode 100644 index 0000000..95b9ef9 --- /dev/null +++ b/68dc8c677e43e8431f8a109a289d3a4c5195e0f3.patch @@ -0,0 +1,32 @@ +From 68dc8c677e43e8431f8a109a289d3a4c5195e0f3 Mon Sep 17 00:00:00 2001 +From: Joe Watkins <krakjoe@php.net> +Date: Sat, 25 May 2019 10:01:22 +0200 +Subject: [PATCH] fix test for XML render (do not depend on format) + +--- + tests/Render/XML/001.phpt | 12 ++++-------- + 1 file changed, 4 insertions(+), 8 deletions(-) + +diff --git a/tests/Render/XML/001.phpt b/tests/Render/XML/001.phpt +index 2041046..ed21905 100644 +--- a/tests/Render/XML/001.phpt ++++ b/tests/Render/XML/001.phpt +@@ -9,14 +9,10 @@ $document = new CommonMark\Node\Document; + $document->appendChild( + (new CommonMark\Node\Paragraph) + ->appendChild($text)); +-echo CommonMark\Render\XML($document); ++if (CommonMark\Render\XML($document)) { ++ echo "OK"; ++} + ?> + --EXPECT-- +-<?xml version="1.0" encoding="UTF-8"?> +-<!DOCTYPE document SYSTEM "CommonMark.dtd"> +-<document xmlns="http://commonmark.org/xml/1.0"> +- <paragraph> +- <text>Hello World</text> +- </paragraph> +-</document> ++OK + |