5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Windows 版 PHP で PHPUnit が遅いとき

Posted at

Windows 版 PHP で PHPUnit の 3.7.2 以降で Failures/Errors/Incomplete/Skipped いずれかが1件以上あるときに実行が異様に遅くなる場合、realpath_cache_size の値を適当に大きくすると解決するかもしれません。

php.ini

realpath_cache_size = 1M

私の環境で eclipse MakeGood からテストケース1つだけで実行したときには 100KB 程度あれば大丈夫そうでしたが、妥当な値はプロジェクトの規模とか内容、さらに実行環境にインストールされている PHPUnit 関連パッケージの量などによっても変わります。

PHPUnit を実行する環境では大きめにとっておくといいかもしれません。

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?