public function init($config) { if ($this->_bufferOutput) { ob_start(); } $this->_initialized = true; $this->getApplication()->setResponse($this); }
public function testGetCookies() { $response = new THttpResponse(); $response->init(null); self::assertInstanceOf('Prado\\Web\\THttpCookieCollection', $response->getCookies()); self::assertEquals(0, $response->getCookies()->getCount()); }