/** * */ public function testExecute() { $get = Get::getInstance(); $get->execute(); $this->assertEquals('xyz', Get::get('abc')); $this->assertEquals('uvw', Get::get('def')); }
/** * 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(); }