1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/ext/spl/tests/SplObjectStorage_current_empty_storage.phpt
2010-01-29 15:43:39 +00:00

18 lines
308 B
PHP

--TEST--
Check that SplObjectStorage::current returns NULL when storage is empty
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
--FILE--
<?php
$s = new SplObjectStorage();
var_dump($s->current());
?>
--EXPECT--
NULL