Beispiel #1
0
 /**
  * Test the options getter.
  *
  * @return void
  *
  * @since  1.0
  *
  * @covers Joomla\Console\Command\AbstractCommand::getOptions
  */
 public function testGetOptions()
 {
     $cmd = $this->instance;
     $cmd->addOption(array('y', 'yell', 'Y'), false, 'Make return uppercase');
     $array = $this->instance->getOptions();
     $this->assertInternalType('array', $array);
     $this->assertInstanceOf('Joomla\\Console\\Option\\Option', array_shift($array), 'Array element not Option object');
 }