File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / xsl / tests / xslt008.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:05 2012 UTC (12 years, 5 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    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>