Skip to content

Commit d3c337e

Browse files
committed
- Tweak tests a bit
1 parent fa9fdbe commit d3c337e

File tree

10 files changed

+28
-22
lines changed

10 files changed

+28
-22
lines changed

ext/xmlwriter/tests/001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ xmlwriter_end_document($xw);
1616
$output_bytes = xmlwriter_flush($xw, true);
1717
echo file_get_contents($doc_dest);
1818
unlink('001.xml');
19-
echo "---Done---\n";
2019
?>
20+
===DONE===
2121
--EXPECT--
2222
<?xml version="1.0" encoding="utf8"?>
2323
<tag1/>
24-
---Done---
24+
===DONE===

ext/xmlwriter/tests/002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ xmlwriter_end_document($xw);
1414

1515
// Force to write and empty the buffer
1616
echo xmlwriter_flush($xw, true);
17-
echo "---Done---\n";
1817
?>
18+
===DONE===
1919
--EXPECT--
2020
<?xml version="1.0" encoding="utf8"?>
2121
<tag1/>
22-
---Done---
22+
===DONE===

ext/xmlwriter/tests/003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ xmlwriter_end_document($xw);
2727

2828
// Force to write and empty the buffer
2929
echo xmlwriter_flush($xw, true);
30-
echo "---Done---\n";
3130
?>
31+
===DONE===
3232
--EXPECT--
3333
<?xml version="1.0" encoding="utf8"?>
3434
<tag1 attr1="attr1_value" att2="att2_value">Test text for tag1<tag2/></tag1>
35-
---Done---
35+
===DONE===

ext/xmlwriter/tests/004.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ if ($md5_out != $md5_res) {
2828
} else {
2929
echo "ok.\n";
3030
}
31-
echo "---Done---\n";
3231
?>
32+
===DONE===
3333
--EXPECT--
3434
ok.
35-
---Done---
35+
===DONE===

ext/xmlwriter/tests/005.phpt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
--TEST--
22
XMLWriter: libxml2 XML Writer, comments
33
--SKIPIF--
4-
<?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
4+
<?php
5+
if (!extension_loaded("xmlwriter")) die("skip");
6+
if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required");
7+
?>
58
--FILE--
69
<?php
710
/* $Id$ */
@@ -21,9 +24,9 @@ xmlwriter_end_document($xw);
2124
$output_bytes = xmlwriter_flush($xw, true);
2225
echo file_get_contents($doc_dest);
2326
unlink('001.xml');
24-
echo "---Done---\n";
2527
?>
28+
===DONE===
2629
--EXPECT--
2730
<?xml version="1.0" encoding="utf8"?>
2831
<tag1><!--comment--><!--comment #2--></tag1>
29-
---Done---
32+
===DONE===

ext/xmlwriter/tests/OO_001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ $xw->endDocument();
1717
$output_bytes = $xw->flush(true);
1818
echo file_get_contents($doc_dest);
1919
unlink('001.xml');
20-
echo "---Done---\n";
2120
?>
21+
===DONE===
2222
--EXPECT--
2323
<?xml version="1.0" encoding="utf8" standalone="standalonearg"?>
2424
<tag1/>
25-
---Done---
25+
===DONE===

ext/xmlwriter/tests/OO_002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ $xw->endDocument();
1414

1515
// Force to write and empty the buffer
1616
echo $xw->flush(true);
17-
echo "---Done---\n";
1817
?>
18+
===DONE===
1919
--EXPECT--
2020
<?xml version="1.0" encoding="utf8" standalone="standalone"?>
2121
<tag1/>
22-
---Done---
22+
===DONE===

ext/xmlwriter/tests/OO_003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ $xw->endDocument();
2929

3030
// Force to write and empty the buffer
3131
echo $xw->flush(true);
32-
echo "---Done---\n";
3332
?>
33+
===DONE===
3434
--EXPECT--
3535
<?xml version="1.0" encoding="utf8"?>
3636
<tag1 attr1="attr1_value" attr2="attr2_value">Test text for tag1<tag2/></tag1>
37-
---Done---
37+
===DONE===

ext/xmlwriter/tests/OO_004.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ if ($md5_out != $md5_res) {
2929
} else {
3030
echo "ok.\n";
3131
}
32-
echo "---Done---\n";
3332
?>
33+
===DONE===
3434
--EXPECT--
3535
ok.
36-
---Done---
36+
===DONE===

ext/xmlwriter/tests/OO_005.phpt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
--TEST--
22
XMLWriter: libxml2 XML Writer, comments
33
--SKIPIF--
4-
<?php if (!extension_loaded("xmlwriter")) print "skip"; ?>
4+
<?php
5+
if (!extension_loaded("xmlwriter")) die("skip");
6+
if (!function_exists("xmlwriter_start_comment")) die("skip: libxml2 2.6.7+ required");
7+
?>
58
--FILE--
69
<?php
710
/* $Id$ */
@@ -21,9 +24,9 @@ $xw->endDocument();
2124
$output_bytes = $xw->flush(true);
2225
echo file_get_contents($doc_dest);
2326
unlink('001.xml');
24-
echo "---Done---\n";
2527
?>
28+
===DONE===
2629
--EXPECT--
2730
<?xml version="1.0" encoding="utf8"?>
2831
<tag1><!--comment--><!--comment #2--></tag1>
29-
---Done---
32+
===DONE===

0 commit comments

Comments
 (0)