function SESanityTestPermission($options) { parent::SESanityTest($options); $cleaned_filename = $this->path; if (substr($cleaned_filename, 0, 2) == "./") { $cleaned_filename = substr($cleaned_filename, 2, strlen($cleaned_filename) - 2); } $cleaned_filename_array = preg_split("/[^a-zA-Z0-9_\\.-]+/", $cleaned_filename); $cleaned_filename = join('_', $cleaned_filename_array); $cleaned_filename = preg_replace('/\\.[^.]$/', '', $cleaned_filename); $this->name = 'permission_' . $cleaned_filename; }
function SESanityTestConfiguration($options) { parent::SESanityTest($options); $this->name = 'configuration_' . strtolower(preg_replace('/[^A-Z0-9_\\.-]/i', '', $this->directive)); }
function SESanityTestCustom($options) { parent::SESanityTest($options); $this->name = 'custom_' . $options['name']; }
function SESanityTestExtension($options) { parent::SESanityTest($options); $this->name = 'extension_' . strtolower(preg_replace('/[^A-Z0-9_\\.-]/i', '', $this->extension)); }