Esempio n. 1
0
 public function testSetMagicMethod()
 {
     $domElement = $this->createDomElement('input');
     $element = new Element($domElement);
     $element->value = "test";
     $domElement = $element->getElement();
     $this->assertEquals("test", $domElement->getAttribute("value"));
 }
Esempio n. 2
0
 public function testSetMagicMethod()
 {
     $domElement = $this->createDomElement('input');
     $element = new Element($domElement);
     $element->value = 'test';
     $this->assertEquals('test', $element->getElement()->getAttribute('value'));
 }