/** * @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(); }
/** * @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(); }
/** * @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(); }