Files
sysPass/tests/bootstrap.php
nuxsmin 379293e7d8 * [ADD] Unit testing. Work in progress.
* [MOD] Improved XML file handling.
2018-05-28 03:01:31 +02:00

43 lines
1.3 KiB
PHP

<?php
/**
* sysPass
*
* @author nuxsmin
* @link https://syspass.org
* @copyright 2012-2018, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
* sysPass is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sysPass is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
*/
define('APP_ROOT', dirname(__DIR__));
define('TEST_ROOT', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'tests');
require APP_ROOT . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'BaseFunctions.php';
require APP_ROOT . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
/**
* Función para llamadas a gettext
*/
if (!function_exists('gettext')) {
/**
* @param $str
* @return string
*/
function gettext($str)
{
return $str;
}
}