0

I want to create a Zend Controller Test Case with Zend Studio 7.0.

(from Zend documentation) "To create a new Zend Controller Test Case: 1. In PHP Explorer view, right-click the Controller file containing the classes you would like to test and select New | Zend Framework Item | Zend Controller Test Case."

But I can see only "Zend Controller (Template Based)" and "Zend Controller (Zend Tool Based)", no "Zend Controller Test Case"!

4

2 回答 2

1

我认为您要寻找的是 PHPUnit 测试用例。

假设您在 Zend Studio 上有默认设置,请按照以下步骤操作:

1.右键单击控制器。

2.进入新建->其他->PHP->PHPUnit->PHPUnit测试用例。

于 2010-01-13T16:39:15.093 回答
0

您也可以在 PHP Explorer 窗口中单击,按 ctrl-2,这将打开 Zend_Tool 窗口,cd 进入项目并输入“zf create controller”

于 2011-03-29T21:26:11.670 回答