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)); }
/** * @param $key * @param $val * * @return Request */ public function withCookie($key, $val) { $this->cookieJar->set($key, $val); return $this->withCookieParams($this->cookieJar->all()); }