xref: /PHP-7.4/ext/xsl/tests/xslt008.phpt (revision 26dfce7f)
1--TEST--
2Test 8: Stream Wrapper Includes
3--SKIPIF--
4<?php
5	require_once __DIR__ .'/skipif.inc';
6	if (!extension_loaded('zlib')) die('skip zlib extension not available');
7?>
8--FILE--
9<?php
10echo "Test 8: Stream Wrapper Includes ";
11include("prepare.inc");
12$xsl = new domDocument;
13$xsl->load(__DIR__."/streamsinclude.xsl");
14if(!$xsl) {
15  echo "Error while parsing the document\n";
16  exit;
17}
18chdir(__DIR__);
19$proc->importStylesheet($xsl);
20print "\n";
21print $proc->transformToXML($dom);
22--EXPECT--
23Test 8: Stream Wrapper Includes
24<?xml version="1.0" encoding="iso-8859-1"?>
25<html><body>bar
26a1 b1 c1 <br/>
27a2 c2 <br/>
28�3 b3 c3 <br/>
29</body></html>
30