isEnabled() public method

public isEnabled ( ) : boolean
return boolean True if enabled
Example #1
0
 /**
  * @group unit
  */
 public function testEnabledDisable()
 {
     $connection = new Connection();
     $this->assertTrue($connection->isEnabled());
     $connection->setEnabled(false);
     $this->assertFalse($connection->isEnabled());
     $connection->setEnabled(true);
     $this->assertTrue($connection->isEnabled());
 }