2
0
Просмотр исходного кода

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 15 лет назад
Родитель
Сommit
6bb98fc23b
1 измененных файлов с 2 добавлено и 2 удалено
  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());
             }
 
-            if ($testActionResource) {
+            if ($testingEnabled) {
                 $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();
             }
 
-            if ($testActionResource) {
+            if ($testingEnabled) {
                 $response->appendContent('Creating a controller test file at ' . $testActionResource->getParentResource()->getContext()->getPath());
                 $testActionResource->getParentResource()->create();
                 $testActionResource->create();