summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/tests/DOMCDATASection_construct_error_001.phpt')
-rw-r--r--ext/dom/tests/DOMCDATASection_construct_error_001.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/dom/tests/DOMCDATASection_construct_error_001.phpt b/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
new file mode 100644
index 0000000..4db2130
--- /dev/null
+++ b/ext/dom/tests/DOMCDATASection_construct_error_001.phpt
@@ -0,0 +1,21 @@
+--TEST--
+__construct() with no arguments.
+--CREDITS--
+Nic Rosental nicrosental@gmail.com
+# TestFest Atlanta 2009-5-14
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+ try
+ {
+ $section = new DOMCDataSection();
+
+ }
+ catch (Exception $e)
+ {
+ echo $e->getMessage();
+ }
+?>
+--EXPECT--
+DOMCdataSection::__construct() expects exactly 1 parameter, 0 given \ No newline at end of file