public function testMethodClearHasPostconditionThatAllUnattachedEventsHaveBeenClearedFromStorageIfNoListenerWasSpecified()
{
$storage = $this->getMock('Horde_Notification_Storage_Interface');
$storage->expects($this->once())->method('clear')->with('_unattached');
$handler = new Horde_Notification_Handler($storage);
$handler->clear();
}