Elgg\lib\output\FormatAttributesTest::testFiltersUnderscoreKeysExceptDataAttributes PHP Метод

testFiltersUnderscoreKeysExceptDataAttributes() публичный Метод

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