isEnabled() public method

public isEnabled ( $capability = null )
Ejemplo n.º 1
0
 public function testEnable()
 {
     $c = new Horde_Imap_Client_Data_Capability_Imap();
     $c->enable('FOO');
     $this->assertTrue($c->isEnabled('Foo'));
     $c->enable('BAR=BAZ');
     $this->assertTrue($c->isEnabled('bar=baz'));
     $c->enable('FOO', false);
     $this->assertFalse($c->isEnabled('foo'));
 }