mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
23 lines
336 B
PHP
23 lines
336 B
PHP
<?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)
|
|
{
|
|
}
|
|
}
|