@@ 121-131 (lines=11) @@ | ||
118 | /** |
|
119 | * @package spamprotection |
|
120 | */ |
|
121 | class FormSpamProtectionExtensionTest_BazProtector implements SpamProtector, TestOnly |
|
122 | { |
|
123 | public function getFormField($name = null, $title = null, $value = null) |
|
124 | { |
|
125 | return new TextField($name, $title, $value); |
|
126 | } |
|
127 | ||
128 | public function setFieldMapping($fieldMapping) |
|
129 | { |
|
130 | } |
|
131 | } |
|
132 | ||
133 | /** |
|
134 | * @package spamprotection |
|
@@ 136-147 (lines=12) @@ | ||
133 | /** |
|
134 | * @package spamprotection |
|
135 | */ |
|
136 | class FormSpamProtectionExtensionTest_BarProtector implements SpamProtector, TestOnly |
|
137 | { |
|
138 | public function getFormField($name = null, $title = null, $value = null) |
|
139 | { |
|
140 | $title = $title ?: 'Bar'; |
|
141 | return new TextField($name, $title, $value); |
|
142 | } |
|
143 | ||
144 | public function setFieldMapping($fieldMapping) |
|
145 | { |
|
146 | } |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * @package spamprotection |