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