public function testHtmlGlobalAttributes2() { $expected = '<html id="primary" class="class1 class2 class3" style="background-color: red;" tabindex="1" accesskey="M" lang="en" dir="ltr" translate="yes" title="hello world" contenteditable="false" spellcheck="false"></html>'; $result = Html5Gen::html(['accesskey' => 'M', 'class' => ['class1', 'class2', 'class3'], 'contenteditable' => 'false', 'dir' => 'ltr', 'hidden' => false, 'id' => 'primary', 'lang' => 'en', 'spellcheck' => 'false', 'style' => 'background-color: red;', 'tabindex' => 1, 'titleAttribute' => 'hello world', 'translate' => 'yes']); $this->assertEquality($expected, $result); }