summaryrefslogtreecommitdiff
path: root/ext/spl/tests/limititerator_seek.phpt
blob: 3336cd0a3965815cfbaac861535de7bf340f9dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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