public function Html5Test::testAttributes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/masterminds/html5/test/HTML5/Html5Test.php \Masterminds\HTML5\Tests\Html5Test::testAttributes()
File
- vendor/
masterminds/ html5/ test/ HTML5/ Html5Test.php, line 303
Class
Namespace
Masterminds\HTML5\TestsCode
public function testAttributes() {
$res = $this
->cycle('<div attr="val">FOO</div>');
$this
->assertRegExp('|<div attr="val">FOO</div>|', $res);
// XXX: Note that spec does NOT require attrs in the same order.
$res = $this
->cycle('<div attr="val" class="even">FOO</div>');
$this
->assertRegExp('|<div attr="val" class="even">FOO</div>|', $res);
$res = $this
->cycle('<div xmlns:foo="http://example.com">FOO</div>');
$this
->assertRegExp('|<div xmlns:foo="http://example.com">FOO</div>|', $res);
$res = $this
->cycleFragment('<div attr="val">FOO</div>');
$this
->assertRegExp('|<div attr="val">FOO</div>|', $res);
// XXX: Note that spec does NOT require attrs in the same order.
$res = $this
->cycleFragment('<div attr="val" class="even">FOO</div>');
$this
->assertRegExp('|<div attr="val" class="even">FOO</div>|', $res);
$res = $this
->cycleFragment('<div xmlns:foo="http://example.com">FOO</div>');
$this
->assertRegExp('|<div xmlns:foo="http://example.com">FOO</div>|', $res);
}