clear() public method

Clear any notification events that may exist in a listener.
public clear ( string $listener = null )
$listener string The name of the listener to flush. If null, clears all unattached events.
Example #1
0
 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();
 }