/** * 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']]); }
/** * 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']]); }
/** * @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; }
/** * 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()); }
/** * @return \Dashboard\Model\Dao\NewRelicDao */ protected function getTestedDao() { $dao = parent::getTestedDao(); $dao->setDaoOptions(['headers' => ['x-api-key' => 'foobar'], 'params' => ['accountId' => '1111111']]); return $dao; }