summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFileObject_key_error003.phpt
blob: 7568cf55f4e40988d78788604eb2932ec897cacf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
SPL: SplFileObject::key error
--CREDITS--
Erwin Poeze <erwin.poeze AT gmail.com>
--FILE--
<?php
//line 2
//line 3
//line 4
//line 5
$s = new SplFileObject(__FILE__);
$s->key(3);
?>
--EXPECTF--
Warning: SplFileObject::key() expects exactly 0 parameters, 1 given in %s on line %d