Ejemplo n.º 1
0
 /**
  * Test get all options.
  *
  * @return void
  *
  * @since  1.0
  *
  * @covers Joomla\Console\Command\AbstractCommand::getAllOptions
  */
 public function testSetAndGetAllOptions()
 {
     $cmd = $this->instance;
     $cmd->setOptions(new Option(array('y', 'yell', 'Y'), false, 'Make return uppercase', Option::IS_GLOBAL));
     $array = $this->instance->getAllOptions();
     $this->assertInternalType('array', $array);
     $this->assertInstanceOf('Joomla\\Console\\Option\\Option', array_shift($array), 'Array element not Option object');
 }