xref: /PHP-8.2/ext/dom/tests/dom004.phpt (revision bd9f4fa6)
1--TEST--
2Test 4: Streams Test
3--EXTENSIONS--
4dom
5--SKIPIF--
6<?php
7in_array('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrapper is not available');
8?>
9--FILE--
10<?php
11$dom = new domdocument;
12$dom->load("compress.zlib://".__DIR__."/book.xml.gz");
13print $dom->saveXML();
14?>
15--EXPECT--
16<?xml version="1.0"?>
17<books>
18 <book>
19  <title>The Grapes of Wrath</title>
20  <author>John Steinbeck</author>
21 </book>
22 <book>
23  <title>The Pearl</title>
24  <author>John Steinbeck</author>
25 </book>
26</books>
27