Example #1
0
 private function getMockedSessionContainer($static = false)
 {
     $app = new App($this->config, uniqid(rand()));
     $app->singleton('fakeSession', function () {
         return new Session(new SessionHandler());
     });
     if ($static) {
         return App::fakeSession();
     }
     return $app->fakeSession();
 }