function testGlobRequireWithAutoload2()
 {
     //creating new unique directory
     $old_dir = $this->tmp_dir;
     $this->tmp_dir = $this->tmp_dir . $this->_rndName() . '/';
     mkdir($this->tmp_dir);
     $c1 = $this->_rndName();
     $c2 = $this->_rndName();
     $c3 = $this->_rndName();
     $path1 = $this->_writeClassFile($c1);
     $path2 = $this->_writeClassFile($c2);
     $path3 = $this->_writeClassFile($c3);
     lmb_require_glob($this->tmp_dir . '/*.class.php');
     foreach (array($c1, $c2, $c3) as $c) {
         $this->assertFalse(in_array($c, get_declared_interfaces()));
         $this->assertTrue(class_exists($c, true));
     }
     $this->tmp_dir = $old_dir;
 }
Example #2
0
function lmb_cli_init_tasks()
{
    foreach (explode(PATH_SEPARATOR, taskman_prop('TASKS_MASKS')) as $mask) {
        lmb_require_glob($mask);
    }
}