remove() public méthode

Remove a capability.
public remove ( string $capability, string $params = null )
$capability string The capability to remove.
$params string A parameter (or array of parameters) to remove from the capability.
Exemple #1
0
 public function testRemoval()
 {
     $c = new Horde_Imap_Client_Data_Capability();
     $c->add('FOO');
     $this->assertTrue($c->query('FOO'));
     $c->remove('FOO');
     $this->assertFalse($c->query('FOO'));
     $c->add('BAR', array('A', 'B', 'C'));
     $c->remove('BAR', array('A', 'C'));
     $this->assertTrue($c->query('BAR'));
     $this->assertFalse($c->query('BAR', 'A'));
     $this->assertTrue($c->query('BAR', 'B'));
     $this->assertFalse($c->query('BAR', 'C'));
     $c->remove('BAR', 'b');
     $this->assertFalse($c->query('BAR'));
     $this->assertFalse($c->query('BAR', 'A'));
     $this->assertFalse($c->query('BAR', 'B'));
     $this->assertFalse($c->query('BAR', 'C'));
 }