--TEST-- Check that SplObjectStorage::current() throws when iterator invalid --CREDITS-- PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) --FILE-- valid()); try { var_dump($s->current()); } catch (RuntimeException $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- bool(false) Called current() on invalid iterator