Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'POST';
     $_SERVER['REQUEST_URI'] = '/test/method';
     $this->filter = new CsrfProtection(["tokenName" => "token"]);
 }
Esempio n. 2
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $_SERVER['REQUEST_URI'] = '/test/get';
     parent::initRouter();
 }
Esempio n. 3
0
 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"));
 }
Esempio n. 4
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $_SERVER['REQUEST_URI'] = '/test/method';
     $this->mockResponse();
     $this->auth = new Authentication(["url" => "http://login/url"]);
 }
Esempio n. 5
0
 public function setUp()
 {
     parent::setUp();
     $user = new User(["salt" => "qEytjqCxtg1"]);
     $user->username = "******";
     $user->name = "Thomas";
     $user->pass = "******";
     $user->email = "*****@*****.**";
     $this->user = $user;
 }
Esempio n. 6
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'POST';
     $_SERVER['REQUEST_URI'] = '/test/method';
 }
Esempio n. 7
0
 public function setUp()
 {
     parent::setUp();
     $this->cookie = new Cookie(array('secure' => false, 'sign' => true, 'secret' => 'C7s9r7yYYyVCDZZstzyl', 'httpOnly' => true));
 }
Esempio n. 8
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['REQUEST_METHOD'] = 'GET';
     $this->filter = new DynamicOutput();
 }