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