public function testAttrGet() { $domElement = $this->createDomElement('input'); $domElement->setAttribute("value", "test"); $element = new Element($domElement); $this->assertEquals("test", $element->attr("value")); }
public function testAttrGet() { $domElement = $this->createDomElement('input'); $domElement->setAttribute('value', 'test'); $element = new Element($domElement); $this->assertEquals('test', $element->attr('value')); }
public function testAttrGet() { $element = new Element('input', null, ['name' => 'username']); $this->assertEquals('username', $element->attr('name')); }
public function testAttrGet() { $node = $this->createNode('input'); $node->setAttribute('value', 'test'); $element = new Element($node); $this->assertEquals('test', $element->attr('value')); }