/** * @covers Yeriomin\Getopt\OptionDefinition::setShort */ public function testSetShort() { $this->assertEquals(null, $this->object->getShort(), '$short is expected to be null by default'); $this->object->setShort('a'); $this->assertEquals('a', $this->object->getShort()); $this->object->setShort('abc'); $this->assertEquals('a', $this->object->getShort()); }