--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)