Exemplo n.º 1
0
 public function testHasAttribute()
 {
     $el = new Element(['onClick' => 'alert("ok")']);
     $this->assertTrue($el->hasAttribute('onClick'));
     $this->assertTrue($el->hasAttribute('onclick'));
     $this->assertEquals('<div onclick="alert(&quot;ok&quot;)"></div>', (string) $el);
 }