About Mayflower / ThinkPHP Find more information about ThinkPHP and Mayflower GmbH on the company's website: for English speaking readers, for German readers. Secure your site SektionEins is the Web Security Company. It was founded by Mayflower GmbH and Stefan Esser and provides Security Audits, Consulting and Security Trainings. Please contact us if you need securing your web application.
via. Sebastian Bergmann 第41回PHP勉強会でid:sasezakiさんに突っ込まれたServices_Hanako*1ですが、id:yandoさんも交えて「APIを叩くコードのテストって難しいよねぇ」という話をしてました。DBなどもそうですが、外部リソースを使うコードのテストって、ある意味キリがなくなりそうですよね。まあ、元々「外部リソースとのやりとりをブラックボックス」にしちゃって楽をしてたフシがあったのですが。。。 で、Sebastian Bergmannをきっかけに、「ブラックボックス」の部分もテストできるようにコンストラクタの引数を変えて、PHPUnit3のモックオブジェクトを使ってテストを書いてみました。 http://openpear.org/repository/Services_Hanako/trunk/test/ServicesHanakoTes
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
PHPSpec Home | Manual | Download | Mailing List | Source PHPSpec is a Behaviour-Driven Development (BDD) framework for PHP PHPSpec allows you to write executable examples reflecting specifications of the desired behaviour of the source code being described. PHPSpec is a simple framework. As the description suggests you can write code examples which are repeatable. This means you write an e
Our Services A unique and diverse offer for continued education with our education flat rate . With architecture workshops , we create a target image for your software architecture. During the security audit , we find security risks and support you in mitigation. With prototyping , we create tangible results as a template or basis for decision-making. In developer coaching , we train or develop te
Now that Zend_Test has shipped, developers are of course asking, "How do I setup my test suite?" Fortunately, after some discussion with my colleagues and a little experimenting on my one, I can answer that now. PHPUnit offers a variety of methods for setting up test suites, some trivial and some complex. The Zend Framework test suite, for instance, goes for a more complex route, adding component-
Since I originally started hacking on the Zend Framework MVC in the fall of 2006, I've been touting the fact that you can test ZF MVC projects by utilizing the Request and Response objects; indeed, this is what I actually did to test the Front Controller and Dispatcher. However, until recently, there was never an easy way to do so in your userland projects; the default request and response objects
こんにちは、牧野です。 今回は、PHPでユニットテストを行う際に便利なユニットテスト用フレームワーク、PHPSpecの紹介です。 PHPSpecは、phpで振舞駆動開発ができるようにと作られたものです。 PHPSpecの詳細はこちら http://dev.phpspec.org/manual/ja/ 日本語マニュアルが大変充実しています。 振舞駆動開発について簡単に説明すると、テストありきの開発手法であるテスト駆動開発を発展させたような開発手法で、このプログラムはこんな動作をするべきだ、という要求仕様(スペック)を、そのままテストコードとして記述しながら開発を進めていく、という感じのものです。PHPSpecのような振舞駆動開発用フレームワークでは、要求仕様がすぐわかるようなテストコードの書き方をするようになっているので開発効率が上がるようです。 ではさっそく、まずはインストールについてです
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く