タグ

TDDとpearに関するat_homeのブックマーク (1)

  • test_helpers拡張モジュール - Do You PHP はてブロ

    気がついたら、PHPUnitの作者であるSebastian Bergmann氏が"test_helpers"なる拡張モジュールを公開していたようです。 GitHub - php-test-helpers/php-test-helpers: An extension for the PHP Interpreter to ease testing of PHP code. コンセプトとしては、ユニットテストを書けないようなレガシーコードで、ユニットテストを楽に書けるようにするための拡張モジュールのようで、ざっと機能をまとめてみると、 exit/die関数の無効化やコールバックを指定できる newオペレータの実行時にコールバックを指定できる 関数の改名 な感じです。感覚的には、PECL :: Package :: runkitに近い感じです。 とりあえず、README.markdownを訳してみ

    test_helpers拡張モジュール - Do You PHP はてブロ
    at_home
    at_home 2012/12/06
    set_exit_overload()使うとexitが書いてあるレガシーコードでもテスト可能になるそうな
  • 1
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy