public function addCommandConfig(CommandConfig $config) { // The name is dynamic, so don't store by name $this->commandConfigs[] = $config; return $this; }
public function testHasCommandConfigs() { $this->assertFalse($this->config->hasCommandConfigs()); $this->config->addCommandConfig($config = new CommandConfig()); $this->assertTrue($this->config->hasCommandConfigs()); }