예제 #1
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  */
 protected function setUp()
 {
     parent::setUp();
     $this->testedDao->getDataProvider()->setAdapter(new \Zend\Http\Client\Adapter\Test());
     $this->testedDao->setDaoOptions(['params' => ['baseUrl' => 'http://ci.vgnett.no']]);
 }
예제 #2
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  */
 protected function setUp()
 {
     parent::setUp();
     $this->testedDao->setDaoOptions(['params' => ['baseUrl' => 'http://ci.vgnett.no']]);
 }
예제 #3
0
 /**
  * @return \Dashboard\Model\Dao\NewRelicDao
  */
 protected function getTestedDao()
 {
     $dao = parent::getTestedDao();
     $dao->setDaoOptions(array('headers' => array('x-api-key' => 'foobar'), 'params' => array('accountId' => '1111111')));
     return $dao;
 }
예제 #4
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  *
  */
 protected function setUp()
 {
     parent::setUp();
     $this->testedDao->getDataProvider()->setAdapter(new \Zend\Http\Client\Adapter\Test());
 }
예제 #5
0
 /**
  * @return \Dashboard\Model\Dao\NewRelicDao
  */
 protected function getTestedDao()
 {
     $dao = parent::getTestedDao();
     $dao->setDaoOptions(['headers' => ['x-api-key' => 'foobar'], 'params' => ['accountId' => '1111111']]);
     return $dao;
 }