setPreferShortName() 공개 메소드

This information is mainly used in the help where the preferred name is listed before alternative names.
public setPreferShortName ( ) : static
리턴 static The current instance.
예제 #1
0
 public function testSetShortNameToNullSetsLongNameToBePreferred()
 {
     $this->config->setShortName('d');
     $this->config->setPreferShortName();
     $this->config->setShortName(null);
     $this->assertTrue($this->config->isLongNamePreferred());
     $this->assertFalse($this->config->isShortNamePreferred());
 }