xref: /webtrees/tests/MockGlobalFunctions.php (revision d11be7027e34e3121be11cc025421873364403f9)
174d6dc0eSGreg Roach<?php
23cfcc809SGreg Roach
374d6dc0eSGreg Roach/**
474d6dc0eSGreg Roach * webtrees: online genealogy
5*d11be702SGreg Roach * Copyright (C) 2023 webtrees development team
674d6dc0eSGreg Roach * This program is free software: you can redistribute it and/or modify
774d6dc0eSGreg Roach * it under the terms of the GNU General Public License as published by
874d6dc0eSGreg Roach * the Free Software Foundation, either version 3 of the License, or
974d6dc0eSGreg Roach * (at your option) any later version.
1074d6dc0eSGreg Roach * This program is distributed in the hope that it will be useful,
1174d6dc0eSGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
1274d6dc0eSGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1374d6dc0eSGreg Roach * GNU General Public License for more details.
1474d6dc0eSGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
1674d6dc0eSGreg Roach */
17fcfa147eSGreg Roach
1874d6dc0eSGreg Roachdeclare(strict_types=1);
1974d6dc0eSGreg Roach
2074d6dc0eSGreg Roachnamespace Fisharebest\Webtrees;
2174d6dc0eSGreg Roach
2274d6dc0eSGreg Roach/**
2374d6dc0eSGreg Roach * Class MockGlobalFunctions
2474d6dc0eSGreg Roach */
2574d6dc0eSGreg Roachabstract class MockGlobalFunctions
2674d6dc0eSGreg Roach{
2774d6dc0eSGreg Roach    /**
2874d6dc0eSGreg Roach     * Mock version of ini_get()
2974d6dc0eSGreg Roach     *
3074d6dc0eSGreg Roach     * @param string $varname
3174d6dc0eSGreg Roach     *
3274d6dc0eSGreg Roach     * @return string
3374d6dc0eSGreg Roach     */
3474d6dc0eSGreg Roach    abstract public function iniGet(string $varname): string;
3574d6dc0eSGreg Roach}
36