public function testPush() { $case = new ArrayCase(); $case->push('foo'); $case->push('bar'); $this->assertEquals(array('foo', 'bar'), $case->all()); }
/** * Add a cookie to the response * @param Cookie $cookie The cookie object */ public function addCookie(Cookie $cookie) { $this->cookies->push($cookie); }