Ejemplo n.º 1
0
 public function testGetValidationState()
 {
     $this->assertSame(AbstractElement::STATE_SUCCESS, $this->element->withSuccess()->getValidationState());
     $this->assertSame(AbstractElement::STATE_WARNING, $this->element->withWarning()->getValidationState());
     $this->assertSame(AbstractElement::STATE_ERROR, $this->element->withError()->getValidationState());
 }