Webmozart\Console\Adapter\ArgsInput::getOptions PHP Method

getOptions() public method

public getOptions ( )
    public function getOptions()
    {
        return $this->args ? $this->args->getOptions() : array();
    }

Usage Example

Exemplo n.º 1
0
 public function testGetOptions()
 {
     $inputArgs = new ArgsInput($this->rawArgs, $this->args);
     $inputNoArgs = new ArgsInput($this->rawArgs);
     $this->args->setOptions(array('option1' => true));
     $this->assertSame(array('option1' => true, 'option2' => 'default'), $inputArgs->getOptions());
     $this->assertSame(array(), $inputNoArgs->getOptions());
 }