Пример #1
0
 /**
  * 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();
     };
 }
Пример #2
0
 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);
 }