Fix testing when config_local.php exists
This commit is contained in:
parent
515031d854
commit
bc47068da6
|
@ -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';
|
||||
|
|
|
@ -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…
Reference in a new issue