我如何在ZF 1中编写用于dispatch($ action)的php unittest

时间:2018-11-28 03:21:28

标签: zend-framework phpunit phpunit-testing

我要为此功能编写单元测试:

 public function dispatch($action){       
    try{
       $this->$action();
    }catch{ }
 }

请帮助我,如何为该函数编写测试,以及方法$ this-> $ action()。

0 个答案:

没有答案
相关问题