public function testEmail() { $value = '*****@*****.**'; $format = ['attr' => ' data-haha="foo"', 'params' => 'ilike=+1']; $this->assertEquals('<a href="mailto:dude@example.org?ilike=+1" data-haha="foo">dude@example.org</a>', rex_formatter::email($value, $format)); }