diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-06 11:23:38 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-06 13:40:22 +0100 |
commit | 8c62c69265817bfd736ac77745cf7686a48d280c (patch) | |
tree | 7776624d2cf5bce5093afe82886fae1bc398c0a4 /ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt | |
parent | db777e9199a94f95416ea16baf82a7d10a0bbe51 (diff) | |
download | php-git-8c62c69265817bfd736ac77745cf7686a48d280c.tar.gz |
More zpp error/variation test removals
Some of these tests also check non-zpp conditions -- however, there is
always some other test that also checks those error conditions.
Diffstat (limited to 'ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt')
-rw-r--r-- | ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt b/ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt deleted file mode 100644 index 6b4a8f798f..0000000000 --- a/ext/spl/tests/SplObjectStorage_detach_invalid_parameter.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -Check that SplObjectStorage::detach generate a warning and returns NULL when passed non-object param ---CREDITS-- -PHPNW Testfest 2009 - Simon Westcott (swestcott@gmail.com) ---FILE-- -<?php - -$data_provider = array( - array(), - true, - "string", - 12345, - 1.2345, - NULL -); - -foreach($data_provider as $input) { - - $s = new SplObjectStorage(); - - var_dump($s->detach($input)); -} - -?> ---EXPECTF-- -Warning: SplObjectStorage::detach() expects parameter 1 to be object, array given in %s on line %d -NULL - -Warning: SplObjectStorage::detach() expects parameter 1 to be object, bool given in %s on line %d -NULL - -Warning: SplObjectStorage::detach() expects parameter 1 to be object, string given in %s on line %d -NULL - -Warning: SplObjectStorage::detach() expects parameter 1 to be object, int given in %s on line %d -NULL - -Warning: SplObjectStorage::detach() expects parameter 1 to be object, float given in %s on line %d -NULL - -Warning: SplObjectStorage::detach() expects parameter 1 to be object, null given in %s on line %d -NULL |