コード例 #1
0
ファイル: Request.php プロジェクト: settermjd/piston
 /**
  * @param string $key
  *
  * @return mixed
  */
 public function getCookie($key)
 {
     return $this->cookieJar->get($key);
 }
コード例 #2
0
ファイル: CookieJarTest.php プロジェクト: refinery29/piston
 public function testGetReturnsNullIfKeyNotFound()
 {
     $key = $this->getFaker()->word;
     $cookieJar = new CookieJar();
     $this->assertNull($cookieJar->get($key));
 }