summaryrefslogtreecommitdiff
path: root/Zend/tests/exception_003.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-05-11 03:50:28 +0000
committerFelipe Pena <felipe@php.net>2008-05-11 03:50:28 +0000
commite4c7664158078d4cfd039a4c97b0edc9d6bf4649 (patch)
treef64a02de863a70a31448f568c9e139a7d3457b0b /Zend/tests/exception_003.phpt
parentc83d916a98bced3f0e56aca7fe069e5f17c4cc2a (diff)
downloadphp-git-e4c7664158078d4cfd039a4c97b0edc9d6bf4649.tar.gz
- MFH: New tests
Diffstat (limited to 'Zend/tests/exception_003.phpt')
-rw-r--r--Zend/tests/exception_003.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/tests/exception_003.phpt b/Zend/tests/exception_003.phpt
new file mode 100644
index 0000000000..e060aace05
--- /dev/null
+++ b/Zend/tests/exception_003.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Throwing exception in global scope
+--FILE--
+<?php
+
+throw new Exception(1);
+
+?>
+--EXPECTF--
+
+Fatal error: Uncaught exception 'Exception' with message '1' in %s:%d
+Stack trace:
+#0 {main}
+ thrown in %s on line %d