silverstripe-spamprotection/tests/Stub/FormSpamProtectionExtensionTest_FooProtector.php

17 lines
337 B
PHP

<?php
/**
* @package spamprotection
*/
class FormSpamProtectionExtensionTest_FooProtector implements SpamProtector, TestOnly
{
public function getFormField($name = null, $title = null, $value = null)
{
return new TextField($name, 'Foo', $value);
}
public function setFieldMapping($fieldMapping)
{
}
}