public isShortNamePreferred ( ) : boolean | ||
리턴 | boolean | Returns `true` if the short name should be preferred over the long name. |
public function isShortNamePreferred()
{
return !$this->isLongNamePreferred();
}
public function testSetShortNameToNullSetsLongNameToBePreferred() { $this->config->setShortName('d'); $this->config->setPreferShortName(); $this->config->setShortName(null); $this->assertTrue($this->config->isLongNamePreferred()); $this->assertFalse($this->config->isShortNamePreferred()); }