Fixed config in tests

This commit is contained in:
Josh Sherman 2014-10-02 17:44:00 -04:00
parent b48b73d064
commit c9ffe4c8bf

View file

@ -24,6 +24,22 @@ namespace
$this->expectOutputString($response); $this->expectOutputString($response);
$_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['SERVER_NAME'] = '127.0.0.1';
file_put_contents('/tmp/pickles.php', '<?php
$config = [
"environments" => [
"local" => "127.0.0.1",
"production" => "123.456.789.0",
],
"pickles" => [
"namespace" => "",
],
"datasources" => [],
];
');
Pickles\Config::getInstance('/tmp/pickles.php');
new Pickles\Router(); new Pickles\Router();
} }