diff options
Diffstat (limited to 'ext/spl/tests/SplObjectStorage_current_empty_storage.phpt')
-rw-r--r-- | ext/spl/tests/SplObjectStorage_current_empty_storage.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/spl/tests/SplObjectStorage_current_empty_storage.phpt b/ext/spl/tests/SplObjectStorage_current_empty_storage.phpt new file mode 100644 index 0000000..65fa691 --- /dev/null +++ b/ext/spl/tests/SplObjectStorage_current_empty_storage.phpt @@ -0,0 +1,15 @@ +--TEST-- +Check that SplObjectStorage::current returns NULL when storage is empty +--CREDITS-- +PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) +--FILE-- +<?php + +$s = new SplObjectStorage(); + +var_dump($s->current()); + +?> +--EXPECT-- +NULL + |