Annotation of embedaddon/php/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Check that SplObjectStorage::unserialize throws exception when NULL passed
                      3: --CREDITS--
                      4: PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com)
                      5: --FILE--
                      6: <?php
                      7: 
                      8: $s = new SplObjectStorage();
                      9: 
                     10: try {
                     11:     $s->unserialize(NULL);
                     12: } catch(UnexpectedValueException $e) {
                     13:     echo $e->getMessage();
                     14: }
                     15: 
                     16: ?>
                     17: --EXPECTF--
                     18: Empty serialized string cannot be empty
                     19: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>