Comos\Qpm\Supervision\Config::getKeeperRestartPolicy PHP Méthode

getKeeperRestartPolicy() public méthode

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

Usage Example

Exemple #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();
 }