public function testSubmitButtonIsNotClicked() { $result = new ValidationResult($this->rawValues, $this->values, $this->messages, 'POST', null); self::assertFalse($result->isClicked('confirm')); self::assertFalse($result->isClicked('cancel')); self::assertNull($result->isClicked()); }
/** * Return form as a string. Optionally inject the error messages for the result. * * @param ValidationResult|null $result * * @return string */ public function asString(ValidationResult $result = null) { if ($result) { // Inject data if a result is set $this->injectValues($result->getValidValues()); $this->injectErrorMessages($result->getErrorMessages()); } $this->document->formatOutput = true; return $this->document->saveHTML(); }