Comos\Qpm\Supervision\Config::getKeeperRestartPolicy PHP 메소드

getKeeperRestartPolicy() 공개 메소드

    public function getKeeperRestartPolicy()
    {
        return clone $this->_keeperRestartPolicy;
    }

Usage Example

예제 #1
0
파일: ConfigTest.php 프로젝트: comos/qpm
 /**
  * @expectedException Comos\Qpm\Supervision\OutOfPolicyException
  */
 public function test__Construct_MaxRestartTimesIsStringButNumeric()
 {
     $data = array('factory' => function () {
         return null;
     }, 'maxRestartTimes' => '1');
     $c = new Config($data);
     $policy = $c->getKeeperRestartPolicy();
     try {
         $policy->check();
     } catch (\Exception $ex) {
         $this->fail();
     }
     $policy->check();
 }