开发者

How can I create a Zend Controller Test Case with Zend Studio?

开发者 https://www.devze.com 2022-12-15 17:44 出处:网络
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:

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 th开发者_开发技巧e 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"!


I think what you looking for is a PHPUnit Test Case.

To get there assuming you have the default setting on your Zend Studio follow the following steps:

1.Right Click on the controller.

2.Go to New->Other->PHP->PHPUnit->PHPUnit Test Case.


You can also click in the PHP Explorer window, hit ctrl-2, which will open the Zend_Tool window, cd into the project and type "zf create controller "

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号