Esempio n. 1
0
 /**
  * @covers Yeriomin\Getopt\Getopt::getOptionsShort
  */
 public function testGetOptionsShort()
 {
     $this->object->setRawArguments(array('-a', 'value1'));
     $optionsShort = $this->object->getOptionsShort();
     $this->assertEquals('value1', $optionsShort['a']);
     $this->object->setOptionsShort(array('b' => 'value2'));
     $optionsShort = $this->object->getOptionsShort();
     $this->assertEquals('value2', $optionsShort['b']);
     $this->object->setParsed(false);
     $this->object->setRawArguments(array('-c', 'value3'));
     $optionsShort = $this->object->getOptionsShort();
     $this->assertEquals('value3', $optionsShort['c']);
 }