summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFileObject_haschildren_error001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/SplFileObject_haschildren_error001.phpt')
-rw-r--r--ext/spl/tests/SplFileObject_haschildren_error001.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/SplFileObject_haschildren_error001.phpt b/ext/spl/tests/SplFileObject_haschildren_error001.phpt
new file mode 100644
index 0000000..0c4e1de
--- /dev/null
+++ b/ext/spl/tests/SplFileObject_haschildren_error001.phpt
@@ -0,0 +1,12 @@
+--TEST--
+SPL: SplFileObject::haschildren error 001
+--CREDITS--
+Erwin Poeze <erwin.poeze at gmail.com>
+--FILE--
+<?php
+$s = new SplFileObject( __FILE__ );
+$s->hasChildren('string');
+
+?>
+--EXPECTF--
+Warning: SplFileObject::hasChildren() expects exactly 0 parameters, 1 given in %s on line %d