Browse Source

Fix testing when config_local.php exists

master
Sébastien Lucas 10 years ago
parent
commit
bc47068da6
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      config.php
  2. +2
    -1
      test/EpubFsTest.php

+ 1
- 1
config.php 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';

+ 2
- 1
test/EpubFsTest.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
{


Loading…
Cancel
Save