getKeeperRestartPolicy() public method

Example #1
0
 /**
  * @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();
 }