summaryrefslogtreecommitdiff
path: root/ext/dom/tests/dom003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/tests/dom003.phpt')
-rw-r--r--ext/dom/tests/dom003.phpt33
1 files changed, 0 insertions, 33 deletions
diff --git a/ext/dom/tests/dom003.phpt b/ext/dom/tests/dom003.phpt
deleted file mode 100644
index 40ddb1f775..0000000000
--- a/ext/dom/tests/dom003.phpt
+++ /dev/null
@@ -1,33 +0,0 @@
---TEST--
-Test 3: Exception Test
---SKIPIF--
-<?php require_once('skipif.inc'); ?>
---FILE--
-<?php
-
-$dom = new domdocument;
-$dom->load(dirname(__FILE__)."/book.xml");
-$rootNode = $dom->documentElement;
-print "--- Catch exception with try/catch\n";
-try {
- $rootNode->appendChild($rootNode);
-} catch (domexception $e) {
- var_dump($e);
-}
-print "--- Don't catch exception with try/catch\n";
-$rootNode->appendChild($rootNode);
-
-
-?>
---EXPECTF--
---- Catch exception with try/catch
-object(domexception)#%d (6) {
- ["code"]=>
- int(3)
-}
---- Don't catch exception with try/catch
-
-Fatal error: Uncaught exception 'domexception' with message 'Hierarchy Request Error' in %sdom003.php:%d
-Stack trace:
-#0 {main}
- thrown in %sdom003.php on line %d