public function testCookieSetInRequest() { $this->getSlimInstance()->get('/', function ($req, $res) { return $res->write("body"); }); $client = new WebTestClient($this->getSlimInstance()); $key = "my_cookie"; $value = "test"; $client->setCookie($key, $value); $body = $client->get('/'); self::assertEquals($value, $client->request->getCookieParams()[$key]); }