silverstripe-framework/tests/php/Forms/EmailFieldTest/TestValidator.php

23 lines
336 B
PHP
Raw Normal View History

2016-10-14 03:30:05 +02:00
<?php
namespace SilverStripe\Forms\Tests\EmailFieldTest;
use Exception;
use SilverStripe\Forms\Validator;
class TestValidator extends Validator
{
public function validationError($fieldName, $message, $messageType = '')
{
throw new Exception($message);
}
public function javascript()
{
}
public function php($data)
{
}
}