1--TEST--
2Check that SplObjectStorage::current() throws when iterator invalid
3--CREDITS--
4PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
5--FILE--
6<?php
7
8$s = new SplObjectStorage();
9
10var_dump($s->valid());
11try {
12    var_dump($s->current());
13} catch (RuntimeException $e) {
14    echo $e->getMessage(), "\n";
15}
16
17?>
18--EXPECT--
19bool(false)
20Called current() on invalid iterator
21