Explorar o código

ZF-11208
- Ensured that in situations where PHPUnit is not present, testing resource variables are available before using them causing an E_STRICT non-existent var message


git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23817 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph %!s(int64=15) %!d(string=hai) anos
pai
achega
6bb98fc23b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      library/Zend/Tool/Project/Provider/Controller.php

+ 2 - 2
library/Zend/Tool/Project/Provider/Controller.php

@@ -177,7 +177,7 @@ class Zend_Tool_Project_Provider_Controller
                 $response->appendContent('Would create a view script for the index action method at ' . $indexActionViewResource->getContext()->getPath());
                 $response->appendContent('Would create a view script for the index action method at ' . $indexActionViewResource->getContext()->getPath());
             }
             }
 
 
-            if ($testActionResource) {
+            if ($testingEnabled) {
                 $response->appendContent('Would create a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
                 $response->appendContent('Would create a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
             }
             }
 
 
@@ -193,7 +193,7 @@ class Zend_Tool_Project_Provider_Controller
                 $indexActionViewResource->create();
                 $indexActionViewResource->create();
             }
             }
 
 
-            if ($testActionResource) {
+            if ($testingEnabled) {
                 $response->appendContent('Creating a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
                 $response->appendContent('Creating a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
                 $testActionResource->getParentResource()->create();
                 $testActionResource->getParentResource()->create();
                 $testActionResource->create();
                 $testActionResource->create();