public static function setUpBeforeClass() { // Add global vars expected to exist by Slim $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['REMOTE_ADDR'] = '?'; $_SERVER['REQUEST_URI'] = '/'; $_SERVER['SERVER_NAME'] = '?'; $_SERVER['SERVER_PORT'] = 80; require __DIR__ . '/../../vendor/autoload.php'; $config = (require __DIR__ . '/../../config.php'); $config['application.db']['prefix'] = 'test__'; if (file_exists(__DIR__ . '/config-local.php')) { require __DIR__ . '/config-local.php'; } self::$db = \Rocker\Object\DB::instance($config['application.db']); }