summaryrefslogtreecommitdiff
path: root/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt
diff options
context:
space:
mode:
authordonnut <erwin.poeze@gmail.com>2012-06-24 10:41:29 +0000
committerStanislav Malyshev <stas@php.net>2012-07-14 19:21:50 -0700
commit4539d799bb0c5dc73e201959b815cfe7ddcd5f05 (patch)
tree9e2fe2368c0b58d4a78c426acd4294c8631a0da6 /ext/spl/tests/fileobject_getmaxlinelen_error001.phpt
parent2cb7a678a1bbd310c8c6ca2c806013df4bf10f0d (diff)
downloadphp-git-4539d799bb0c5dc73e201959b815cfe7ddcd5f05.tar.gz
addition SplFileObject tests
Diffstat (limited to 'ext/spl/tests/fileobject_getmaxlinelen_error001.phpt')
-rw-r--r--ext/spl/tests/fileobject_getmaxlinelen_error001.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt b/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt
new file mode 100644
index 0000000000..3c0c9eebd5
--- /dev/null
+++ b/ext/spl/tests/fileobject_getmaxlinelen_error001.phpt
@@ -0,0 +1,14 @@
+--TEST--
+SPL: SplFileObject::getMaxLineLen error 001
+--CREDITS--
+Erwin Poeze <erwin.poeze at gmail.com>
+--INI--
+include_path=.
+--FILE--
+<?php
+$s = new SplFileObject( __FILE__ );
+$s->getMaxLineLen('string');
+
+?>
+--EXPECTF--
+Warning: SplFileObject::getMaxLineLen() expects exactly 0 parameters, 1 given in %s on line %d