@covers PHPUnit_Framework_Assert::assertNotContains
public function testAssertSplObjectStorageNotContainsObject() {
$a = new stdClass();
$b = new stdClass();
$c = new SplObjectStorage();
$c
->attach($a);
$this
->assertNotContains($b, $c);
try {
$this
->assertNotContains($a, $c);
} catch (PHPUnit_Framework_AssertionFailedError $e) {
return;
}
$this
->fail();
}