浏览代码

fix fatal error when getResource() returns null

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19581 44c647ce-9c0f-0410-b52a-842ac1e357ba
bkarwin 16 年之前
父节点
当前提交
96f8933dd7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/Zend/Application/Module/BootstrapTest.php

+ 1 - 0
tests/Zend/Application/Module/BootstrapTest.php

@@ -90,6 +90,7 @@ class Zend_Application_Module_BootstrapTest extends PHPUnit_Framework_TestCase
         $bootstrap = new ZfModule_Bootstrap($this->application);
         $module = $bootstrap->getModuleName();
         $loader = $bootstrap->getResourceLoader();
+        $this->assertNotNull($loader, "resource loader is unexpectedly NULL");
         $this->assertEquals($module, $loader->getNamespace());
     }