Exemplo n.º 1
0
 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';
 }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->_conn->httpHeadersReceived = true;
 }