Zend Framework のドキュメントと PHPUnitのマニュアルから始めるのが良いでしょう: Chapter 3. PHPUnit のインストール
phpunit.xml
次の行に沿ってファイルに何かを入力する必要があります。
<phpunit bootstrap="./application/bootstrap.php" colors="true">
<testsuite name="Application" >
<directory>./library</directory>
<directory>./application</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../application</directory>
<directory suffix=".php">../library/My</directory>
<exclude>
<directory suffix=".phtml">../application/</directory>
<file>../application/Bootstrap.php</file>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./log/report" charset="UTF-8"
yui="true" highlight = "true" lowUpperBound="50" highLowerBound="80" />
<log type="testdox" target="./log/testdox.html" />
</logging>
</phpunit>
次に、テスト フォルダーでコマンド ラインから 'phpunit' を実行するだけです。phpunit でコード カバレッジ レポートを作成する場合は、環境で xdebug を有効にする必要もあります。