Пример #1
0
 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);
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     Translator::registerDomain('icingatest', BaseTestCase::$testDir . '/res/locale');
 }
Пример #3
0
 public function setUp()
 {
     $this->markTestSkipped();
     parent::setUp();
     Hook::clean();
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     $this->target = tempnam(sys_get_temp_dir(), 'log');
 }
Пример #5
0
 /**
  * Set up config dir
  */
 public function setUp()
 {
     parent::setUp();
     $this->oldConfigDir = Config::$configDir;
     Config::$configDir = dirname(__FILE__) . '/ConfigTest/files';
 }
Пример #6
0
 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'));
 }
Пример #7
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');
 }
Пример #8
0
 public function setUp()
 {
     parent::setUp();
     Hook::clean();
 }