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