|
|
@@ -404,7 +404,6 @@ class Zend_Loader_Autoloader_ResourceTest extends PHPUnit_Framework_TestCase
|
|
|
*/
|
|
|
public function testAutoloaderResourceGetClassPath()
|
|
|
{
|
|
|
- //print_r(get_class_methods($this->loader));
|
|
|
$this->loader->addResourceTypes(array(
|
|
|
'model' => array('path' => 'models', 'namespace' => 'Model'),
|
|
|
));
|
|
|
@@ -412,6 +411,19 @@ class Zend_Loader_Autoloader_ResourceTest extends PHPUnit_Framework_TestCase
|
|
|
// if true we have // in path
|
|
|
$this->assertFalse(strpos($path, '//'));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @group ZF-8364
|
|
|
+ * @group ZF-6727
|
|
|
+ */
|
|
|
+ public function testAuloaderResourceGetClassPathReturnFalse()
|
|
|
+ {
|
|
|
+ $this->loader->addResourceTypes(array(
|
|
|
+ 'model' => array('path' => 'models', 'namespace' => 'Model'),
|
|
|
+ ));
|
|
|
+ $path = $this->loader->autoload('Something_Totally_Wrong');
|
|
|
+ $this->assertFalse($path);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (PHPUnit_MAIN_METHOD == 'Zend_Loader_Autoloader_ResourceTest::main') {
|