Example #1
0
 /**
  *
  */
 public function testExecute()
 {
     $cookies = Cookie::getInstance();
     $cookies->execute();
     $this->assertEquals('xyz', Cookie::get('abc'));
     $this->assertEquals('uvw', Cookie::get('def'));
 }
Example #2
0
 /**
  * Initialize requests
  *
  * @return void
  */
 private function initRequest()
 {
     $request = new Command();
     /** @noinspection PhpParamsInspection */
     $request->add(Get::getInstance());
     /** @noinspection PhpParamsInspection */
     $request->add(Post::getInstance());
     /** @noinspection PhpParamsInspection */
     $request->add(Cookie::getInstance());
     /** @noinspection PhpParamsInspection */
     $request->add(Request::getInstance());
     $request->run();
 }