/** * Test if the getCookie responses with the default set value if the parameter doesn't exist. */ public function testNotExistedCookieWithDefaultValue() { $this->assertSame($this->request->getCookie('not_existed_cookie_param', 'default_value'), 'default_value'); }
/** * Returns the session ID from the request object. If the request has no session, it returns NULL. * * @return string */ protected function getSessionId() { return $this->request->getCookie($this->cookieName, null); }