setTerminateAfterRun() публичный Метод

Sets whether to terminate the PHP process after running a command.
См. также: isTerminatedAfterRun()
public setTerminateAfterRun ( boolean $terminate ) : static
$terminate boolean Whether to terminate the PHP process after running a command.
Результат static The current instance.
Пример #1
0
 protected function setUp()
 {
     $this->config = new ApplicationConfig();
     $this->config->setCatchExceptions(false);
     $this->config->setTerminateAfterRun(false);
     $this->config->setIOFactory(function ($application, $args, $inputStream, $outputStream, $errorStream) {
         return new IO(new Input($inputStream), new Output($outputStream), new Output($errorStream));
     });
 }
Пример #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testSetTerminateAfterRunFailsIfNoBoolean()
 {
     $this->config->setTerminateAfterRun(1234);
 }