xref: /PHP-7.3/ext/xsl/tests/xslt007.phpt (revision b746e698)
1--TEST--
2Test 7: Transform To Uri
3--SKIPIF--
4<?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
5--FILE--
6<?php
7echo "Test 7: Transform To Uri";
8include("prepare.inc");
9$proc->importStylesheet($xsl);
10print "\n";
11$doc = $proc->transformToUri($dom, "file://".dirname(__FILE__)."/out.xml");
12print file_get_contents(dirname(__FILE__)."/out.xml");
13unlink(dirname(__FILE__)."/out.xml");
14print "\n";
15--EXPECT--
16Test 7: Transform To Uri
17<?xml version="1.0" encoding="iso-8859-1"?>
18<html><body>bar
19a1 b1 c1 <br/>
20a2 c2 <br/>
21�3 b3 c3 <br/>
22</body></html>
23