public function getCookies() { if ($this->_cookies === null) { $this->_cookies = new THttpCookieCollection($this); } return $this->_cookies; }
public function testGetCookies() { $response = new THttpResponse(); $response->init(null); self::assertInstanceOf('Prado\\Web\\THttpCookieCollection', $response->getCookies()); self::assertEquals(0, $response->getCookies()->getCount()); }