Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 533 Bytes
--TEST--
XML_Util2::raiseError() basic tests
--CREDITS--
Chuck Burgess <ashnazg@php.net>
# created for v1.2.0a1 2008-05-04
--FILE--
<?php
require_once 'XML' . DIRECTORY_SEPARATOR . 'Util2.php';
$util = new XML_Util2();
echo '=====XML_Util2::raiseError() basic tests=====' . PHP_EOL . PHP_EOL;
try {
$util->raiseError("I am an error", 12345);
} catch (XML_Util2_Exception $error) {
print "PEAR Error: " . $error->getMessage() . PHP_EOL;
}
?>
--EXPECT--
=====XML_Util2::raiseError() basic tests=====
PEAR Error: I am an error