Esempio n. 1
0
 /**
  * Setup Icinga auto loader
  *
  * @return $this
  */
 public function setupAutoloader()
 {
     require $this->libDir . '/Icinga/Application/Loader.php';
     $this->loader = new Loader();
     $this->loader->registerNamespace('Icinga', $this->libDir . '/Icinga');
     $this->loader->register();
     return $this;
 }
Esempio n. 2
0
 /**
  * @expectedException Icinga\Exception\ProgrammingError
  */
 public function testNonexistingDirectory()
 {
     $loader = new Loader();
     $loader->registerNamespace('My\\Library', '/trullalla/123');
 }