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