Permalink
Browse files

update output to show proper results as seen in PHP4

git-svn-id: http://svn.php.net/repository/pear/packages/XML_Beautifier/trunk@266675 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 0914b26 commit cf2d076af9fd7aec0336be4cc9da6959f6f602d3 Chuck Burgess committed Sep 22, 2008
Showing with 15 additions and 8 deletions.
  1. +15 −8 tests/bug-5591.phpt
View
@@ -4,17 +4,22 @@ XML Beautifier - Bug #5591: Undefined variable notice when parsing DOCTYPE
<?php
/*
* The bug report complains of a Notice being printed,
- * but I cannot duplicate it here. Instead, this test case
- * fails because the XML and DOCTYPE tags are not being
- * included in the output. That problem is already
- * reported in Bug #5450. This test case should begin
- * passing after #5450 is fixed.
+ * but I cannot duplicate it here.
+ *
+ * Note that this test case fails on PHP5 because
+ * the XML and DOCTYPE tags are not being included in
+ * the output. That problem is already reported in
+ * Bug #5450. This test case should begin passing
+ * after #5450 is fixed.
+ *
+ * Note also that I'm not sure if the 5-char indention
+ * of the DOCTYPE attributes is correct behavior.
*/
error_reporting(E_ALL);
require_once 'XML/Beautifier.php';
-/**
+/*
* XML is from http://www.samalyse.com/ln/0015.php
*/
$xml = <<<EOF
@@ -48,8 +53,10 @@ $fmt = new XML_Beautifier();
echo $fmt->formatString($xml);
?>
--EXPECT--
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />

0 comments on commit cf2d076

Please sign in to comment.