testに関するhnwのブックマーク (4)

  • Sebastian Bergmann

    Sebastian Bergmann has created the industry-leading testing tool PHPUnit, which has played a vital role in professionalizing software development with PHP. Sebastian shares his comprehensive experience in publications and at conferences. As Co-Founder and Principal Consultant of The PHP Consulting Company (thePHP.cc), he helps his clients to develop software successfully. In his free time, Sebasti

    hnw
    hnw 2011/05/20
    privateメンバ変数はPHPUnitの標準の機能でテストできるよ!privateメソッドはPHPのReflection使えば一応テストできるよ!でもカプセル化崩すのはよくないと思うよ!だそうです。
  • Sebastian Bergmann

    Sebastian Bergmann has created the industry-leading testing tool PHPUnit, which has played a vital role in professionalizing software development with PHP. Sebastian shares his comprehensive experience in publications and at conferences. As Co-Founder and Principal Consultant of The PHP Consulting Company (thePHP.cc), he helps his clients to develop software successfully. In his free time, Sebasti

    hnw
    hnw 2011/05/20
    密結合しててテストが難しい場合でも、自作エクステンション( http://bit.ly/fBSOYv )を使ってnewをオーバーロードすればスタブ化できるよ!だそうです。標準機能で出来たら嬉しいんだけどねえ…。
  • Sebastian Bergmann

    Sebastian Bergmann has created the industry-leading testing tool PHPUnit, which has played a vital role in professionalizing software development with PHP. Sebastian shares his comprehensive experience in publications and at conferences. As Co-Founder and Principal Consultant of The PHP Consulting Company (thePHP.cc), he helps his clients to develop software successfully. In his free time, Sebasti

    hnw
    hnw 2011/05/20
    PHPUnit3.5から、制限付きでstaticメソッドのモック化ができるようになった。その説明。
  • Sebastian Bergmann

    Sebastian Bergmann has created the industry-leading testing tool PHPUnit, which has played a vital role in professionalizing software development with PHP. Sebastian shares his comprehensive experience in publications and at conferences. As Co-Founder and Principal Consultant of The PHP Consulting Company (thePHP.cc), he helps his clients to develop software successfully. In his free time, Sebasti

    hnw
    hnw 2011/05/20
    シングルトンをシングルトンのままテストする方法3つ。
  • 1