public function setUp() { parent::setUp(); $tempDir = sys_get_temp_dir(); $this->baseDir = tempnam($tempDir, 'icinga2-web'); system('mkdir -p ' . $this->baseDir . dirname(self::$classFile)); file_put_contents($this->baseDir . self::$classFile, self::$classContent); }
public function setUp() { parent::setUp(); Translator::registerDomain('icingatest', BaseTestCase::$testDir . '/res/locale'); }
public function setUp() { $this->markTestSkipped(); parent::setUp(); Hook::clean(); }
public function setUp() { parent::setUp(); $this->target = tempnam(sys_get_temp_dir(), 'log'); }
/** * Set up config dir */ public function setUp() { parent::setUp(); $this->oldConfigDir = Config::$configDir; Config::$configDir = dirname(__FILE__) . '/ConfigTest/files'; }
public function setUp() { parent::setUp(); $this->sampleData = array((object) array('host' => 'localhost', 'problem' => '1', 'service' => 'ping', 'state' => '2', 'handled' => '1'), (object) array('host' => 'localhost', 'problem' => '1', 'service' => 'www.icinga.org', 'state' => '0', 'handled' => '0'), (object) array('host' => 'localhost', 'problem' => '1', 'service' => 'www.icinga.org', 'state' => '1', 'handled' => '0')); }
public function setUp() { parent::setUp(); $this->tempFile = tempnam(sys_get_temp_dir(), 'icinga-ini-writer-test'); $this->tempFile2 = tempnam(sys_get_temp_dir(), 'icinga-ini-writer-test-2'); }
public function setUp() { parent::setUp(); Hook::clean(); }