| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Tests\Data\FindDeprecated; |
| 4 | |
| 5 | /** |
| 6 | * Class without any deprecated code |
| 7 | */ |
| 8 | class FileWithoutDeprecatedCode { |
| 9 | /** |
| 10 | * This method is not deprecated :D |
| 11 | * |
| 12 | * @param string $param |
| 13 | * @return string |
| 14 | */ |
| 15 | public function testMethodOne( string $param ) { |
| 16 | return trim( $param ); |
| 17 | } |
| 18 | |
| 19 | public function testMethodTwo() { |
| 20 | // Call a wf* method that is not wfDeprecated. |
| 21 | wfDebug( "test" ); |
| 22 | return "test"; |
| 23 | } |
| 24 | } |