Skip to content

Commit

Permalink
set default config for test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Jan 11, 2017
1 parent f37cb05 commit 753407c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?php
namespace p3k;
const TESTING = true;
require __DIR__ . '/../vendor/autoload.php';

// Load config file if present, otherwise use default
if(file_exists(dirname(__FILE__).'/../config.php')) {
require dirname(__FILE__).'/../config.php';
} else {
class Config {
public static $cache = false;
}
}

0 comments on commit 753407c

Please # to comment.