public function setUp() { parent::setUp(); $_SERVER['REQUEST_METHOD'] = 'POST'; $_SERVER['REQUEST_URI'] = '/test/method'; $this->filter = new CsrfProtection(["tokenName" => "token"]); }
public function setUp() { parent::setUp(); $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['REQUEST_URI'] = '/test/get'; parent::initRouter(); }
public function setUp() { parent::setUp(); $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['REQUEST_URI'] = '/test/method'; $this->filter = new PageCache(array('varyBy' => 'url', 'ttl' => 0, 'cacheValidator' => null, 'key' => "page_cache")); }
public function setUp() { parent::setUp(); $_SERVER['REQUEST_METHOD'] = 'GET'; $_SERVER['REQUEST_URI'] = '/test/method'; $this->mockResponse(); $this->auth = new Authentication(["url" => "http://login/url"]); }
public function setUp() { parent::setUp(); $user = new User(["salt" => "qEytjqCxtg1"]); $user->username = "******"; $user->name = "Thomas"; $user->pass = "******"; $user->email = "*****@*****.**"; $this->user = $user; }
public function setUp() { parent::setUp(); $_SERVER['REQUEST_METHOD'] = 'POST'; $_SERVER['REQUEST_URI'] = '/test/method'; }
public function setUp() { parent::setUp(); $this->cookie = new Cookie(array('secure' => false, 'sign' => true, 'secret' => 'C7s9r7yYYyVCDZZstzyl', 'httpOnly' => true)); }
public function setUp() { parent::setUp(); $_SERVER['REQUEST_METHOD'] = 'GET'; $this->filter = new DynamicOutput(); }