public getParentConfig ( ) : |
||
return | The parent command configuration. |
public function getParentConfig()
{
return $this->parentConfig;
}
public function testCreateWithArguments() { $applicationConfig = new ApplicationConfig(); $parentConfig = new CommandConfig('command', $applicationConfig); $config = new SubCommandConfig('sub-command', $parentConfig, $applicationConfig); $this->assertSame($parentConfig, $config->getParentConfig()); $this->assertSame($applicationConfig, $config->getApplicationConfig()); $this->assertSame('sub-command', $config->getName()); }