Пример #1
0
 /**
  * Mark element as valid.
  *
  * @return void
  */
 public function setValid()
 {
     $this->node->removeAttribute('data-invalid');
 }
Пример #2
0
 function it_should_mark_as_unchecked_element(NodeInterface $node)
 {
     $node->removeAttribute('checked')->shouldBeCalled();
     $this->setUnchecked()->shouldBe($this);
 }
Пример #3
0
 function it_should_set_element_as_valid(NodeInterface $node)
 {
     $node->removeAttribute('data-invalid')->shouldBeCalled();
     $this->setValid();
 }
Пример #4
0
 function it_should_mark_as_unchecked_element(NodeInterface $node)
 {
     $node->removeAttribute('checked')->shouldBeCalled();
     $this->setUnchecked()->shouldHaveType('DeForm\\Element\\CheckboxElement');
 }