/** * @param string $cookieName * @test * @dataProvider validCookieNames */ public function constructorAcceptsValidCookieNames($cookieName) { $cookie = new Cookie($cookieName); $this->assertEquals($cookieName, $cookie->getName()); }
/** * Sets a cookie * * @param Cookie $cookie * @return void * @api */ public function setCookie(Cookie $cookie) { $this->cookies[$cookie->getName()] = $cookie; }