/** * @param string $key * * @return mixed */ public function getCookie($key) { return $this->cookieJar->get($key); }
public function testGetReturnsNullIfKeyNotFound() { $key = $this->getFaker()->word; $cookieJar = new CookieJar(); $this->assertNull($cookieJar->get($key)); }