0
我一直在努力嘗試使phpunit和zend框架變得敏捷一段時間。我有一個xml文件,配置已經工作了一段時間phpunit在100條斷言處停止
<phpunit bootstrap="./bootstrap.php">
<testsuite name="Unit test">
<directory>./unit</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../../library/Zend</directory>
</whitelist>
</filter>
</phpunit>
看到這是一個簡單的配置文件。現在,當我達到100個斷言(yuppi !!)或是10.00Mb內存時,我發現phpunit並沒有評估更多的類或方法。我一直有這個相同的輸出
PHPUnit 3.6.3 by Sebastian Bergmann.
Configuration read from C:\folder\tests\phpunit.xml
.............................
Time: 4 seconds, Memory: 10.00Mb
OK (29 tests, 100 assertions)
我在這裏錯過了什麼嗎?我也tryed做testsuites
和groups
但最終我不認爲最後按預期工作
非常感謝。這解決了我的問題 –
@AlwinKesler太棒了。我剛剛添加了一個註釋,指出不要在-1處離開。 memory_limit可以在系統關閉之前捕獲真正的問題腳本:-) –