tests/EditableSpamProtectionFieldTest.php 1 location
|
@@ 125-135 (lines=11) @@
|
122 |
|
|
123 |
|
} |
124 |
|
|
125 |
|
class EditableSpamProtectionFieldTest_Protector implements SpamProtector, TestOnly |
126 |
|
{ |
127 |
|
public function getFormField($name = null, $title = null, $value = null) |
128 |
|
{ |
129 |
|
return new TextField($name, 'Foo', $value); |
130 |
|
} |
131 |
|
|
132 |
|
public function setFieldMapping($fieldMapping) |
133 |
|
{ |
134 |
|
} |
135 |
|
} |
136 |
|
|
tests/FormSpamProtectionExtensionTest.php 1 location
|
@@ 152-162 (lines=11) @@
|
149 |
|
/** |
150 |
|
* @package spamprotection |
151 |
|
*/ |
152 |
|
class FormSpamProtectionExtensionTest_FooProtector implements SpamProtector, TestOnly |
153 |
|
{ |
154 |
|
public function getFormField($name = null, $title = null, $value = null) |
155 |
|
{ |
156 |
|
return new TextField($name, 'Foo', $value); |
157 |
|
} |
158 |
|
|
159 |
|
public function setFieldMapping($fieldMapping) |
160 |
|
{ |
161 |
|
} |
162 |
|
} |
163 |
|
|