我將PHPUnit整合到netbeans中,現在想爲我的代碼生成測試。PHPUnit-Netbeans類未找到異常
<?php
/**
* Action User
*
* user api
*
* @link http://getfrapi.com
* @author Frapi <[email protected]>
* @link rsmobile/user/:id
*/
class Action_User extends Frapi_Action implements Frapi_Action_Interface
{
}
?>
我試圖通過點擊右鍵和selecting Tools->Create PHPUnit Tests
來做到這一點。但它給了這個錯誤:
Fatal error: Class 'Frapi_Action' not found in /Users/username/Documents/.../src/
frapi/custom/Action/User.php on line 12
然後我在文件user.php的追加的虛擬Frapi_Action
類,然後將它生成的骨架類。
<?php
/**
* Action User
*
* user api
*
* @link http://getfrapi.com
* @author Frapi <[email protected]>
* @link rsmobile/user/:id
*/
class Frapi_Action {}
class Action_User extends Frapi_Action implements Frapi_Action_Interface
{
}
?>
爲什麼它給這個類找不到錯誤?我如何解決它?