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()); }