xref: /PHP-5.4/ext/dom/tests/dom004.phpt (revision 113e304d)
1--TEST--
2Test 4: Streams Test
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6in_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");
12print $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>
26