/** * Test the options getter. * * @return void * * @since 2.0 * * @covers Windwalker\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('Windwalker\\Console\\Option\\Option', array_shift($array), 'Array element not Option object'); }