DummyFtpConnect.php
4 years ago
RecursiveException.php
9 years ago
TestCase.php
2 years ago
TestFilters.php
9 years ago
TransientObject.php
9 years ago
WordPressTestCase.php
1 year ago
TestFilters.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Dummy filter methods for testing Hookable base class |
| 4 | */ |
| 5 | class Loco_test_TestFilters extends Loco_hooks_Hookable { |
| 6 | |
| 7 | |
| 8 | /** |
| 9 | * Test filter returns arguments exactly as passed |
| 10 | * @return array |
| 11 | */ |
| 12 | public function filter_loco_test_passthru_arguments( $foo ){ |
| 13 | return func_get_args(); |
| 14 | } |
| 15 | |
| 16 | |
| 17 | /** |
| 18 | * Test filter increments passed number by +1 |
| 19 | * @return int |
| 20 | */ |
| 21 | public function filter_loco_test_increment_by_one( $n ){ |
| 22 | return ++$n; |
| 23 | } |
| 24 | |
| 25 | |
| 26 | } |