0
這檔測試它需要PHPUnit的,我安裝了PHPUnit的,但不知道使用它:如何使用本文件的PHPUnit測試「延長化PHPUnit_Framework_TestCase」
<?php
# -*- compile-command: (concat "phpunit " buffer-file-name) -*-
require_once 'PHPUnit/Framework.php';
require_once 'common.php';
class Authentication extends PHPUnit_Framework_TestCase{
........
}
?>
它指導:
安裝時(PHPunit)只需運行 目錄頂部的 命令phpunit,它將啓動 測試。
但我不明白怎麼辦> <
我不能添加或命名有關類的事,因爲它是rackspacecloud的api(我也不知道使用) – meotimdihia 2010-11-22 16:45:53
我認爲你需要更多的信息。 PHPUnit不是微不足道的設置正確。你的PHPUnit安裝正確嗎?例如,你可以運行它與其他測試(嘗試示例測試目錄)。如果這是關於其他人爲你寫的框架/ API的東西 - 你看過他們的文檔嗎?通常PHPUnit的命令行是'phpunit filename.php'(除非你有配置xml等等),那麼真的太多了,可能是錯誤的。 – 2010-11-22 18:22:21
非常感謝,我會重新考慮這一點。 – meotimdihia 2010-11-24 06:25:56