예제 #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;
 }
예제 #2
0
 /**
  * @expectedException Icinga\Exception\ProgrammingError
  */
 public function testNonexistingDirectory()
 {
     $loader = new Loader();
     $loader->registerNamespace('My\\Library', '/trullalla/123');
 }