Beispiel #1
0
 /**
  * @group ZF-8364
  * @group ZF-6727
  */
 public function testAutoloaderResourceGetClassPathReturnFalseForPrefixedClass()
 {
     $loader = new ResourceAutoloader(array('prefix' => 'FooBar', 'basePath' => realpath(__DIR__ . '/_files/ResourceAutoloader')));
     $loader->addResourceTypes(array('model' => array('path' => 'models', 'namespace' => 'Model')));
     $path = $loader->autoload('Something_Totally_Wrong');
     $this->assertFalse($path);
 }