-=[ Mr. Bumblebee ]=-
_Indonesia_
| Path : /usr/src/php/ext/spl/tests/ |
|
|
| Current File : //usr/src/php/ext/spl/tests/SplObjectStorage_removeAllExcept_basic.phpt |
--TEST--
Check that SplObjectStorage::removeUncommon functions when receiving proper input
--CREDITS--
Matthew Turland (me@matthewturland.com)
--FILE--
<?php
$a = (object) 'a';
$b = (object) 'b';
$c = (object) 'c';
$foo = new SplObjectStorage;
$foo->attach($a);
$foo->attach($b);
$bar = new SplObjectStorage;
$bar->attach($b);
$bar->attach($c);
$foo->removeAllExcept($bar);
var_dump($foo->contains($a));
var_dump($foo->contains($b));
?>
--EXPECT--
bool(false)
bool(true)
Copyright © 2017 || Recoded By Mr.Bumblebee