isDefault() public method

Returns whether the command is a default command.
public isDefault ( ) : boolean
return boolean Returns `true` if either {@link markDefault()} or {@link markAnonymous()} was called and `false` otherwise.
Example #1
0
 public function testMarkNoDefault()
 {
     $this->config->markAnonymous();
     $this->assertTrue($this->config->isDefault());
     $this->assertTrue($this->config->isAnonymous());
     $this->config->markNoDefault();
     $this->assertFalse($this->config->isDefault());
     $this->assertFalse($this->config->isAnonymous());
 }