public function testToStringForCookieBag() { $cookieBag = new CookieBag(); $cookieBag->set('name', 'jan'); $this->assertEquals(1, count($cookieBag->all())); }
/** * Retrieve cookies. * * Retrieves cookies sent by the client to the server. * * The data MUST be compatible with the structure of the $_COOKIE * superglobal. * * @return array */ public function getCookieParams() { return $this->cookie->all(); }