mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 07:21:30 +02:00
[ticket/12683] Improve exception handling
PHPBB3-12683
This commit is contained in:
25
tests/mock/search_backend_mock_not_available.php
Normal file
25
tests/mock/search_backend_mock_not_available.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
class search_backend_mock_not_available extends search_backend_mock
|
||||
{
|
||||
public function get_name(): string
|
||||
{
|
||||
return 'Mock unavailable search backend';
|
||||
}
|
||||
|
||||
public function is_available(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user