Ejemplo n.º 1
0
 public function testToStringForCookieBag()
 {
     $cookieBag = new CookieBag();
     $cookieBag->set('name', 'jan');
     $this->assertEquals(1, count($cookieBag->all()));
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }