public function testFiltersUnderscoreKeysExceptDataAttributes() { $attrs = ['foo_bar' => 'a', 'data-foo_bar' => 'b']; $expected = 'data-foo_bar="b"'; $this->assertEquals($expected, elgg_format_attributes($attrs)); }