public function setUp() { $this->_reqStub = $this->getMock('Guzzle\\Http\\Message\\RequestInterface'); $this->_reqStub->expects($this->any())->method('getHeader')->will($this->returnValue('localhost')); parent::setUp(); $this->_serv->allowedOrigins[] = 'localhost'; }
public function setUp() { if (!class_exists('Symfony\\Component\\HttpFoundation\\Session\\Session')) { return $this->markTestSkipped('Dependency of Symfony HttpFoundation failed'); } parent::setUp(); $this->_serv = new SessionProvider($this->_app, new NullSessionHandler()); }
public function setUp() { parent::setUp(); $this->_conn->httpHeadersReceived = true; }