Browse Source
set default config for test suite
pull/39/head
v1.0.0
No known key found for this signature in database
GPG Key ID: 276C2817346D6056
1 changed files with
10 additions and
1 deletions
-
tests/bootstrap.php
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|