--TEST-- Check that SplObjectStorage::removeUncommon functions when receiving proper input --CREDITS-- Matthew Turland (me@matthewturland.com) --FILE-- 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)