- Tweak tests a bit

This commit is contained in:
Marcus Boerger 2005-07-03 09:10:41 +00:00
parent fa9fdbeeac
commit d3c337e59d
10 changed files with 28 additions and 22 deletions

View file

@ -16,9 +16,9 @@ xmlwriter_end_document($xw);
$output_bytes = xmlwriter_flush($xw, true);
echo file_get_contents($doc_dest);
unlink('001.xml');
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8"?>
<tag1/>
---Done---
===DONE===

View file

@ -14,9 +14,9 @@ xmlwriter_end_document($xw);
// Force to write and empty the buffer
echo xmlwriter_flush($xw, true);
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8"?>
<tag1/>
---Done---
===DONE===

View file

@ -27,9 +27,9 @@ xmlwriter_end_document($xw);
// Force to write and empty the buffer
echo xmlwriter_flush($xw, true);
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8"?>
<tag1 attr1="attr1_value" att2="att2_value">Test text for tag1<tag2/></tag1>
---Done---
===DONE===

View file

@ -28,8 +28,8 @@ if ($md5_out != $md5_res) {
} else {
echo "ok.\n";
}
echo "---Done---\n";
?>
===DONE===
--EXPECT--
ok.
---Done---
===DONE===

View file

@ -1,7 +1,10 @@
--TEST--
XMLWriter: libxml2 XML Writer, comments
--SKIPIF--
<?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
<?php
if (!extension_loaded("xmlwriter")) die("skip");
if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required");
?>
--FILE--
<?php
/* $Id$ */
@ -21,9 +24,9 @@ xmlwriter_end_document($xw);
$output_bytes = xmlwriter_flush($xw, true);
echo file_get_contents($doc_dest);
unlink('001.xml');
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8"?>
<tag1><!--comment--><!--comment #2--></tag1>
---Done---
===DONE===

View file

@ -17,9 +17,9 @@ $xw->endDocument();
$output_bytes = $xw->flush(true);
echo file_get_contents($doc_dest);
unlink('001.xml');
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8" standalone="standalonearg"?>
<tag1/>
---Done---
===DONE===

View file

@ -14,9 +14,9 @@ $xw->endDocument();
// Force to write and empty the buffer
echo $xw->flush(true);
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8" standalone="standalone"?>
<tag1/>
---Done---
===DONE===

View file

@ -29,9 +29,9 @@ $xw->endDocument();
// Force to write and empty the buffer
echo $xw->flush(true);
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8"?>
<tag1 attr1="attr1_value" attr2="attr2_value">Test text for tag1<tag2/></tag1>
---Done---
===DONE===

View file

@ -29,8 +29,8 @@ if ($md5_out != $md5_res) {
} else {
echo "ok.\n";
}
echo "---Done---\n";
?>
===DONE===
--EXPECT--
ok.
---Done---
===DONE===

View file

@ -1,7 +1,10 @@
--TEST--
XMLWriter: libxml2 XML Writer, comments
--SKIPIF--
<?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
<?php
if (!extension_loaded("xmlwriter")) die("skip");
if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required");
?>
--FILE--
<?php
/* $Id$ */
@ -21,9 +24,9 @@ $xw->endDocument();
$output_bytes = $xw->flush(true);
echo file_get_contents($doc_dest);
unlink('001.xml');
echo "---Done---\n";
?>
===DONE===
--EXPECT--
<?xml version="1.0" encoding="utf8"?>
<tag1><!--comment--><!--comment #2--></tag1>
---Done---
===DONE===