File tree Expand file tree Collapse file tree 10 files changed +28
-22
lines changed Expand file tree Collapse file tree 10 files changed +28
-22
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ xmlwriter_end_document($xw);
16
16
$ output_bytes = xmlwriter_flush ($ xw , true );
17
17
echo file_get_contents ($ doc_dest );
18
18
unlink ('001.xml ' );
19
- echo "---Done--- \n" ;
20
19
?>
20
+ ===DONE===
21
21
--EXPECT--
22
22
<? xml version="1.0 " encoding="utf8"?>
23
23
<tag1/>
24
- ---Done---
24
+ ===DONE===
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ xmlwriter_end_document($xw);
14
14
15
15
// Force to write and empty the buffer
16
16
echo xmlwriter_flush ($ xw , true );
17
- echo "---Done--- \n" ;
18
17
?>
18
+ ===DONE===
19
19
--EXPECT--
20
20
<? xml version="1.0 " encoding="utf8"?>
21
21
<tag1/>
22
- ---Done---
22
+ ===DONE===
Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ xmlwriter_end_document($xw);
27
27
28
28
// Force to write and empty the buffer
29
29
echo xmlwriter_flush ($ xw , true );
30
- echo "---Done--- \n" ;
31
30
?>
31
+ ===DONE===
32
32
--EXPECT--
33
33
<? xml version="1.0 " encoding="utf8"?>
34
34
<tag1 attr1="attr1_value" att2="att2_value">Test text for tag1<tag2/></tag1>
35
- ---Done---
35
+ ===DONE===
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ if ($md5_out != $md5_res) {
28
28
} else {
29
29
echo "ok. \n" ;
30
30
}
31
- echo "---Done--- \n" ;
32
31
?>
32
+ ===DONE===
33
33
--EXPECT--
34
34
ok.
35
- ---Done---
35
+ ===DONE===
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
XMLWriter: libxml2 XML Writer, comments
3
3
--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
+ ?>
5
8
--FILE--
6
9
<?php
7
10
/* $Id$ */
@@ -21,9 +24,9 @@ xmlwriter_end_document($xw);
21
24
$ output_bytes = xmlwriter_flush ($ xw , true );
22
25
echo file_get_contents ($ doc_dest );
23
26
unlink ('001.xml ' );
24
- echo "---Done--- \n" ;
25
27
?>
28
+ ===DONE===
26
29
--EXPECT--
27
30
<? xml version="1.0 " encoding="utf8"?>
28
31
<tag1><!--comment--><!--comment #2--></tag1>
29
- ---Done---
32
+ ===DONE===
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ $xw->endDocument();
17
17
$ output_bytes = $ xw ->flush (true );
18
18
echo file_get_contents ($ doc_dest );
19
19
unlink ('001.xml ' );
20
- echo "---Done--- \n" ;
21
20
?>
21
+ ===DONE===
22
22
--EXPECT--
23
23
<? xml version="1.0 " encoding="utf8" standalone="standalonearg"?>
24
24
<tag1/>
25
- ---Done---
25
+ ===DONE===
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ $xw->endDocument();
14
14
15
15
// Force to write and empty the buffer
16
16
echo $ xw ->flush (true );
17
- echo "---Done--- \n" ;
18
17
?>
18
+ ===DONE===
19
19
--EXPECT--
20
20
<? xml version="1.0 " encoding="utf8" standalone="standalone"?>
21
21
<tag1/>
22
- ---Done---
22
+ ===DONE===
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ $xw->endDocument();
29
29
30
30
// Force to write and empty the buffer
31
31
echo $ xw ->flush (true );
32
- echo "---Done--- \n" ;
33
32
?>
33
+ ===DONE===
34
34
--EXPECT--
35
35
<? xml version="1.0 " encoding="utf8"?>
36
36
<tag1 attr1="attr1_value" attr2="attr2_value">Test text for tag1<tag2/></tag1>
37
- ---Done---
37
+ ===DONE===
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ if ($md5_out != $md5_res) {
29
29
} else {
30
30
echo "ok. \n" ;
31
31
}
32
- echo "---Done--- \n" ;
33
32
?>
33
+ ===DONE===
34
34
--EXPECT--
35
35
ok.
36
- ---Done---
36
+ ===DONE===
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
XMLWriter: libxml2 XML Writer, comments
3
3
--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
+ ?>
5
8
--FILE--
6
9
<?php
7
10
/* $Id$ */
@@ -21,9 +24,9 @@ $xw->endDocument();
21
24
$ output_bytes = $ xw ->flush (true );
22
25
echo file_get_contents ($ doc_dest );
23
26
unlink ('001.xml ' );
24
- echo "---Done--- \n" ;
25
27
?>
28
+ ===DONE===
26
29
--EXPECT--
27
30
<? xml version="1.0 " encoding="utf8"?>
28
31
<tag1><!--comment--><!--comment #2--></tag1>
29
- ---Done---
32
+ ===DONE===
You can’t perform that action at this time.
0 commit comments