2014-03-26 109 views
0

我正在嘗試配置phpunit,但它不工作! - 我第一次與phpunit-在xampp windows上配置phpunit

我已經通過梨安裝,在Windows 7上-xampp服務器,它的工作正常,問題是phpunit.xml文件只是似乎沒有工作噸如此之久。

enter image description here

,你可以看到phpunit.xml位於我的項目的根目錄中,但只是水溼找到我的測試:(。如果我直接就manualy測試運行得很好。這是我的phpunit.xml文件

<?xml version="1.0" encoding="UTF-8"?> 
<phpunit colors="true"> 
<testsuites> 
    <testsuite name="Application Test Suite"> 
     <directory>./test/</directory> 
    </testsuite> 
</testsuites> 
</phpunit> 

我的項目是一個笨框架位於E:\ XAMPP \ htdocs中\ ehit 目錄結構 -ehit --application --system --test

所以我做錯了什麼?

回答

0

假設你在使用笨CIUnit,嘗試添加路徑引導,如:

<phpunit 
    colors="true" 
    bootstrap="/application/third_party/CIUnit/bootstrap_phpunit.php"> 

    <testsuites> 
     <testsuite name="Application Test Suite"> 
      <directory>./test/</directory> 
     </testsuite> 
    </testsuites> 
</phpunit>