summaryrefslogtreecommitdiff
path: root/ext/spl/tests/limititerator_seek.phpt
blob: a59a49bee86a6185ed1148788bcea919bee0e4d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
SPL: LimitIterator seek() arguments
--CREDITS--
Roshan Abraham (roshanabrahams@gmail.com)
TestFest London May 2009
--FILE--
<?php

$a = array(1,2,3);
$lt = new LimitIterator(new ArrayIterator($a));

$lt->seek(1,1); // Should throw a warning as seek expects only 1 argument

?>
--EXPECTF--

Warning: LimitIterator::seek() expects exactly 1 parameter, 2 given in %s on line %d