Esempio n. 1
0
 /**
  * testMethod_autoloadIncludePath()
  */
 public function testMethod_autoloadIncludePath()
 {
     // try to load an unknown class
     $this->assertFalse(Loader::autoloadIncludePath('\\Namespace\\Library\\SomeUnknownClass'));
     // set the include path to our fixtures directory, where a namespaces class exists
     $path = __DIR__ . DIRECTORY_SEPARATOR . 'fixtures';
     set_include_path($path . PATH_SEPARATOR . get_include_path());
     // try to load existing namespaced class
     $this->assertTrue(Loader::autoloadIncludePath('\\Clansuite\\NamespacedClass'));
 }