Exemplo n.º 1
0
 /**
  * @test
  */
 public function runsWithCommonEntryPoint()
 {
     $this->daemonControl->start();
     RetryAssertion::wait()->times(100)->sleeping(100, RetryAssertion::MILLISEC)->until(array($this, 'checkPid'));
     $this->daemonControl->stop();
     RetryAssertion::wait()->times(100)->sleeping(100, RetryAssertion::MILLISEC)->until(array($this, 'checkPidFileGone'));
     $this->checkLogFiles();
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function twoInstancesRunning()
 {
     $this->daemonControl->startAll();
     RetryAssertion::wait()->times(100)->sleeping(100, RetryAssertion::MILLISEC)->until(array($this, 'checkPids'));
     $this->daemonControl->stopAll();
     RetryAssertion::wait()->times(100)->sleeping(100, RetryAssertion::MILLISEC)->until(array($this, 'checkPidsGone'));
     $this->checkLogFile();
 }
Exemplo n.º 3
0
 /**
  * @test
  */
 public function singleInstanceRunning()
 {
     $this->daemonControl->start();
     RetryAssertion::wait()->times(100)->sleeping(100, RetryAssertion::MILLISEC)->until(array($this, 'checkPid'));
     $this->daemonControl->stop();
     RetryAssertion::wait()->times(100)->sleeping(100, RetryAssertion::MILLISEC)->until(array($this, 'checkPidFileGone'));
     $this->checkLogFiles();
 }