我拼命嘗試使用Zend Framework 1.11工作PHPUnit。在我的phpunit.xml中,我需要確定它指向的位置。phpunit.xml指向哪裏?
<phpunit bootstrap="./bootstrap.php" colors="false">
<testsuite name="ApplicationTestSuite">
<directory>./application</directory>
<directory>./library/</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../application</directory>
<directory suffix=".php">../library/</directory>
<exclude>
<directory suffix=".phtml">../applications/views</directory>
<file>../applications/Bootstrap.php</file>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./log/coverage" charset="UTF-8"
yui="true" highlight="false" lowUpperBound="35" highLowerBound="70"/>
</logging>
</phpunit>
這一切:
./Application
./library
../application/Bootstrap.php
指向測試目錄,而不是應用程序目錄,對不對?
因爲我一直有一個致命錯誤:require_once:無法開口要求controllerTestCase.php ...
在此先感謝您的幫助