Browse Source

set default config for test suite

pull/39/head v1.0.0
Aaron Parecki 7 years ago
parent
commit
753407c904
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      tests/bootstrap.php

+ 10
- 1
tests/bootstrap.php View File

@ -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;
}
}

Loading…
Cancel
Save