Nette\Tester – ako nastaviť session?
- suwer
- Člen | 33
Session si prece muzes normalne vytvorit a predat dal do objektu, ktery testujes:
// $session = new Nette\Http\Session(IRequest $request, IResponse $response);
$session = new Nette\Http\Session(
new Nette\Http\Request(new Nette\Http\UrlScript()),
new Nette\Http\Response()
);
Pokud potrebujes vlastni storage, tak se pro inspiraci koukni na https://github.com/…handler.phpt
Editoval suwer (14. 4. 2018 14:50)