コード例 #1
0
ファイル: ArrayCaseTest.php プロジェクト: modulework/http
 public function testPush()
 {
     $case = new ArrayCase();
     $case->push('foo');
     $case->push('bar');
     $this->assertEquals(array('foo', 'bar'), $case->all());
 }
コード例 #2
0
ファイル: Response.php プロジェクト: modulework/http
 /**
  * Add a cookie to the response
  * @param Cookie $cookie The cookie object
  */
 public function addCookie(Cookie $cookie)
 {
     $this->cookies->push($cookie);
 }