Annotation of embedaddon/php/ext/dom/tests/dom004.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test 4: Streams Test
3: --SKIPIF--
4: <?php
5: require_once('skipif.inc');
6: in_array('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrapper is not available');
7: ?>
8: --FILE--
9: <?php
10: $dom = new domdocument;
11: $dom->load("compress.zlib://".dirname(__FILE__)."/book.xml.gz");
12: print $dom->saveXML();
13:
14: --EXPECT--
15: <?xml version="1.0"?>
16: <books>
17: <book>
18: <title>The Grapes of Wrath</title>
19: <author>John Steinbeck</author>
20: </book>
21: <book>
22: <title>The Pearl</title>
23: <author>John Steinbeck</author>
24: </book>
25: </books>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>