$x = new $cls;
- if(!method_exists($x, "test_{$core_email->name}")){
- $this->jerr("Function test_{$core_email->name} does not exists");
+ $method = "test_{$core_email->name}";
+
+ if(!method_exists($x, $method)){
+ $this->jerr("{$method} does not exists in {$cls}");
}
+ $x->
+
}
}