Example #1
0
 public function setTarget($target)
 {
     if (is_object($target) === false) {
         throw new atoum\exceptions\logic\invalidArgument(sprintf('%s is not an object', $target));
     }
     return parent::setTarget($target);
 }
Example #2
0
 public function setTarget($target)
 {
     if (is_object($target) === false && class_exists($target) === false) {
         throw new atoum\exceptions\logic\invalidArgument(sprintf('Class %s does not exist', $target));
     }
     return parent::setTarget($target);
 }