| @@ 103-111 (lines=9) @@ | ||
| 100 | /** |
|
| 101 | * @package spamprotection |
|
| 102 | */ |
|
| 103 | class FormSpamProtectionExtensionTest_BazProtector implements SpamProtector, TestOnly |
|
| 104 | { |
|
| 105 | public function getFormField($name = null, $title = null, $value = null) |
|
| 106 | { |
|
| 107 | return new TextField($name, $title, $value); |
|
| 108 | } |
|
| 109 | ||
| 110 | public function setFieldMapping($fieldMapping) |
|
| 111 | { |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| @@ 118-127 (lines=10) @@ | ||
| 115 | /** |
|
| 116 | * @package spamprotection |
|
| 117 | */ |
|
| 118 | class FormSpamProtectionExtensionTest_BarProtector implements SpamProtector, TestOnly |
|
| 119 | { |
|
| 120 | public function getFormField($name = null, $title = null, $value = null) |
|
| 121 | { |
|
| 122 | $title = $title ?: 'Bar'; |
|
| 123 | return new TextField($name, $title, $value); |
|
| 124 | } |
|
| 125 | ||
| 126 | public function setFieldMapping($fieldMapping) |
|
| 127 | { |
|
| 128 | } |
|
| 129 | } |
|
| 130 | ||