home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2001 August
/
PCWorld_2001-08_cd.bin
/
Komunikace
/
phptriad
/
phptriadsetup2-11.exe
/
php
/
pear
/
XML
/
tests
/
004.phpt
< prev
next >
Wrap
Text File
|
2000-12-06
|
555b
|
25 lines
--TEST--
XML Parser: error class
--FILE--
<?php // -*- C++ -*-
//
// Test for: XML/Parser.php
// Parts tested: - parser error class
//
require_once "XML/Parser.php";
print "new XML_Parser ";
var_dump(get_class($p = new XML_Parser()));
$e = $p->parseString("<?xml version='1.0' ?><foo></bar>", true);
if (PEAR::isError($e)) {
printf("error message: %s\n", $e->getMessage());
} else {
print "no error\n";
}
?>
--EXPECT--
new XML_Parser string(10) "xml_parser"
error message: XML_Parser: mismatched tag at XML input line 1