Fix testing when config_local.php exists

This commit is contained in:
Sébastien Lucas 2014-03-19 20:12:55 +01:00
parent 515031d854
commit bc47068da6
2 changed files with 3 additions and 2 deletions

View file

@ -7,5 +7,5 @@
*/
require_once 'config_default.php';
if (file_exists(dirname(__FILE__). '/config_local.php'))
if (file_exists(dirname(__FILE__). '/config_local.php') && (php_sapi_name() !== 'cli'))
require_once 'config_local.php';

View file

@ -6,9 +6,10 @@
* @author Sébastien Lucas <sebastien@slucas.fr>
*/
require_once (dirname(__FILE__) . "/config_test.php");
require_once (dirname(__FILE__) . "/../book.php");
require_once (dirname(__FILE__) . "/../epubfs.php");
require_once (dirname(__FILE__) . "/config_test.php");
class EpubFsTest extends PHPUnit_Framework_TestCase
{