for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tests\Fiv\Form\Fixtures;
use Fiv\Form\Form;
/**
*
*/
class ExampleMessageForm extends Form {
* @return bool
public function isValid() {
if (!parent::isValid()) {
return false;
}
if (
$this->getElements()['emailFrom']->getValue() == '[email protected]'
and $this->getElements()['emailTo']->getValue() == '[email protected]'
and $this->getElements()['message']->getValue() == 'copy message text'
) {
$this->validationResult = false;
$this->addError('message duplicate error');
return $this->validationResult;