/**
  * @return MainProcess
  * @throws \yii\base\InvalidConfigException
  */
 private function _supervisorMainProcess()
 {
     return \Yii::$container->get(MainProcess::className());
 }
 public function testShutdown()
 {
     $this->config->method('callMethod')->with($this->equalTo('supervisor.shutdown'))->willReturn(true);
     $this->assertEquals(true, $this->mainProcess->shutdown());
 }