public function testHasParam() { $_REQUEST = ['foo' => 'Foo', 'bar' => 'Bar']; $request = new Request(new Session(), new Cookie()); $this->assertTrue($request->hasParam('foo')); $this->assertTrue($request->hasParam('bar')); $this->assertFalse($request->hasParam('baz')); }
/** * @return bool */ public function isSent() { if (!$this->request) { return false; } return $this->request->hasParam($this->name) || $this->request->hasFiles($this->name); }