summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMDocument_validate_error1.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-07-02 00:01:20 +0000
committerFelipe Pena <felipe@php.net>2009-07-02 00:01:20 +0000
commitc90594408770315d46f3222a5327863b1993f75e (patch)
tree279dac2b89d8bb66b955b7d94dcfa779541f4471 /ext/dom/tests/DOMDocument_validate_error1.phpt
parent09ca614d5eb3b6650c0a99d8011d0a622a3f37b6 (diff)
downloadphp-git-c90594408770315d46f3222a5327863b1993f75e.tar.gz
- New tests (NorwayUG testfest)
Diffstat (limited to 'ext/dom/tests/DOMDocument_validate_error1.phpt')
-rw-r--r--ext/dom/tests/DOMDocument_validate_error1.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/dom/tests/DOMDocument_validate_error1.phpt b/ext/dom/tests/DOMDocument_validate_error1.phpt
new file mode 100644
index 0000000000..8e1e72fe0f
--- /dev/null
+++ b/ext/dom/tests/DOMDocument_validate_error1.phpt
@@ -0,0 +1,16 @@
+--TEST--
+DOMDocument::validate() should fail if any parameter is given
+--CREDITS--
+Knut Urdalen <knut@php.net>
+#PHPTestFest2009 Norway 2009-06-09 \o/
+--SKIPIF--
+<?php
+require_once dirname(__FILE__) .'/skipif.inc';
+?>
+--FILE--
+<?php
+$dom = new DOMDocument('1.0');
+$dom->validate(true);
+?>
+--EXPECTF--
+Warning: DOMDocument::validate() expects exactly 0 parameters, 1 given in %s on line %d