Beispiel #1
0
 function register($type, $options = array())
 {
     $test =& SESanityTest::getInstance($type, $options);
     $name = $test->getName();
     if (isset($this->tests[$name])) {
         $this->tests[$name]->merge($test);
     } else {
         $this->tests[$name] =& $test;
     }
 }
Beispiel #2
0
 function setOptions($options)
 {
     if (isset($options['extension'])) {
         $this->extension = $options['extension'];
     }
     if (isset($options['version'])) {
         $this->version_required = $options['version'];
     }
     parent::setOptions($options);
 }
 function setOptions($options)
 {
     if (isset($options['path'])) {
         $this->path = $options['path'];
     }
     if (isset($options['perms'])) {
         $this->perms = $options['perms'];
     }
     if (isset($options['recurse'])) {
         $this->recurse = $options['recurse'];
     }
     parent::setOptions($options);
 }
 function setOptions($options)
 {
     if (isset($options['directive'])) {
         $this->directive = $options['directive'];
     }
     if (isset($options['value'])) {
         $this->value = $options['value'];
     }
     if (isset($options['cmp'])) {
         $this->comparision = $options['cmp'];
     }
     if (isset($options['is_bytes'])) {
         $this->is_bytes = $options['is_bytes'];
     }
     parent::setOptions($options);
 }
Beispiel #5
0
 function SESanityTestCustom($options)
 {
     parent::SESanityTest($options);
     $this->name = 'custom_' . $options['name'];
 }