Annotation of embedaddon/php/ext/xsl/tests/xslt009.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test 9: Stream Wrapper XPath-Document() 
                      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 9: Stream Wrapper XPath-Document()";
                     11: include("prepare.inc");
                     12: 
                     13: $xsl = new domDocument;
                     14: $xsl->load(dirname(__FILE__)."/documentxpath.xsl");
                     15: if(!$xsl) {
                     16:   echo "Error while parsing the document\n";
                     17:   exit;
                     18: }
                     19: 
                     20: $proc->importStylesheet($xsl);
                     21: print "\n";
                     22: print $proc->transformToXML($dom);
                     23: 
                     24: 
                     25: --EXPECT--
                     26: Test 9: Stream Wrapper XPath-Document()
                     27: <?xml version="1.0" encoding="iso-8859-1"?>
                     28: foo

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>