diff options
Diffstat (limited to 'ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt')
-rw-r--r-- | ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt b/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt index bc9f78a1ca..6934c3af1b 100644 --- a/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt +++ b/ext/spl/tests/SplObjectStorage_unserialize_invalid_parameter3.phpt @@ -1,5 +1,5 @@ --TEST-- -Check that SplObjectStorage::unserialize doesn't throws exception when NULL passed +Check that SplObjectStorage::unserialize doesn't throws exception when empty string passed --CREDITS-- PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) --FILE-- @@ -8,7 +8,7 @@ PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) $s = new SplObjectStorage(); try { - $s->unserialize(NULL); + $s->unserialize(''); } catch(UnexpectedValueException $e) { echo $e->getMessage(); } |