Example #1
0
 public function testCanSetValue()
 {
     $faker = $this->getFaker();
     $key = $faker->word;
     $value = $faker->word;
     $cookieJar = new CookieJar();
     $cookieJar->set($key, $value);
     $this->assertSame($value, $cookieJar->get($key));
 }
Example #2
0
 /**
  * @param $key
  * @param $val
  *
  * @return Request
  */
 public function withCookie($key, $val)
 {
     $this->cookieJar->set($key, $val);
     return $this->withCookieParams($this->cookieJar->all());
 }