/** * initialize test suite */ public function setUp() { $this->app = new Application(["app.path" => __DIR__, "app.public.path" => __DIR__, "config.path" => __DIR__ . "/Config/config.yml", "config.cache.lifetime" => 300, "cache.driver" => "array", "cache.options" => ["namespace" => "singo"]]); $this->app->init($this->app); $this->app["users"] = function () { return new UserProvider(); }; }
public function setUp() { $this->app = new Application(["app.path" => __DIR__ . "/../../../src", "app.public.path" => __DIR__, "config.path" => __DIR__ . "/../../../src/Config/config.yml", "config.cache.lifetime" => 300, "cache.driver" => "array", "cache.options" => ["namespace" => "singo"], "use.module" => true]); $this->app->init($this->app); }