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

« back to all changes in this revision

Viewing changes to ext/simplexml/tests/013.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
SimpleXML and Split text content
 
3
--SKIPIF--
 
4
<?php 
 
5
        if (!extension_loaded('simplexml')) print 'skip';
 
6
?>
 
7
--FILE--
 
8
<?php 
 
9
 
 
10
$xml =<<<EOF
 
11
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
12
<foo>bar<baz/>bar</foo>
 
13
EOF;
 
14
 
 
15
$sxe = simplexml_load_string($xml);
 
16
 
 
17
var_dump((string)$sxe);
 
18
 
 
19
?>
 
20
===DONE===
 
21
--EXPECT--
 
22
string(6) "barbar"
 
23
===DONE===