summaryrefslogtreecommitdiff
path: root/ext/xsl/tests/xslt001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xsl/tests/xslt001.phpt')
-rw-r--r--ext/xsl/tests/xslt001.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/xsl/tests/xslt001.phpt b/ext/xsl/tests/xslt001.phpt
new file mode 100644
index 0000000..ec5538a
--- /dev/null
+++ b/ext/xsl/tests/xslt001.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Test 1: Transform To XML String
+--SKIPIF--
+<?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
+--FILE--
+<?php
+echo "Test 1: Transform To XML String";
+include("prepare.inc");
+$proc->importStylesheet($xsl);
+print "\n";
+print $proc->transformToXml($dom);
+print "\n";
+
+
+--EXPECT--
+Test 1: Transform To XML String
+<?xml version="1.0" encoding="iso-8859-1"?>
+<html><body>bar
+a1 b1 c1 <br/>
+a2 c2 <br/>
+ä3 b3 c3 <br/>
+</body></html>