~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/dom/tests/dom_xinclude.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Test: Xinclude and Streams
 
3
--SKIPIF--
 
4
<?php
 
5
require_once('skipif.inc');
 
6
array_search('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrapper is not available');
 
7
?>
 
8
--FILE--
 
9
<?php
 
10
$dom = new domdocument;
 
11
$dom->load(dirname(__FILE__)."/xinclude.xml");
 
12
$dom->xinclude();
 
13
print $dom->saveXML()."\n";
 
14
foreach ($dom->documentElement->childNodes as $node) {
 
15
        print $node->nodeName."\n";
 
16
}
 
17
 
 
18
--EXPECT--
 
19
<?xml version="1.0"?>
 
20
<foo xmlns:xi="http://www.w3.org/2001/XInclude">
 
21
    <book xml:base="compress.zlib://ext/dom/tests/book.xml">
 
22
  <title>The Grapes of Wrath</title>
 
23
  <author>John Steinbeck</author>
 
24
 </book><book xml:base="compress.zlib://ext/dom/tests/book.xml">
 
25
  <title>The Pearl</title>
 
26
  <author>John Steinbeck</author>
 
27
 </book>
 
28
 </foo>
 
29
 
 
30
#text
 
31
book
 
32
book
 
33
#text