run() 공개 메소드

run the command
부터: 3.0.0
public run ( string $mode = null ) : string
$mode string name of the mode
리턴 string
예제 #1
0
 /**
  * testLock
  *
  * @since 3.0.0
  */
 public function testLock()
 {
     /* setup */
     $this->_config->init(Stream::url('root/config.php'));
     $this->_request->setServer('argv', ['console.php', 'config', 'lock']);
     $configCommand = new Command\Config($this->_registry, $this->_request, $this->_config);
     /* actual */
     $actual = $configCommand->run('cli');
     /* compare */
     $this->assertTrue($actual);
 }