短気なプログラマのためのPHPUnitクックブック by Chris Hartjes et al. [PDF/iPad/Kindle]
短気なプログラマのためのPHPUnitクックブック
短気なプログラマのためのPHPUnitクックブック
$29.00
最低価格
$29.00
希望価格
短気なプログラマのためのPHPUnitクックブック

本書は2015-01-27に更新されました。

本書について

「今までテストを書いたことがないから、そろそろテストを書かなくては・・・」という、PHPUnitもテストのこともまだ知らないプログラマにとって、一番最初に欲しいのは「何から始めたらよいのか」を知るためのガイドです。

本書は、PHPUnitを使ったテストの書き方を、短時間で知るための小冊子です。これだけ読めば、PHPUnitでテストを書いていけるようになります。

本書が特徴的なのは、ユニットテストの形式的な書き方だけを単純に説明した本ではないということです。本書では、PHPUnitによるテストを、オブジェクト指向の原則に沿った、良いコードへリファクタリングしていくための道具、と位置づけています。その流れに沿って、必要最低限の基礎知識や、実際にありそうなサンプルコードで使い方が説明されています。モック(テストダブル)を使ったテスト、フィクスチャを使ったテスト、APIのテストといった対象ごとのPHPUnitテストの書き方を、小さめの例で簡潔に説明しています。本書を読めば、どのようにテストを書いて行ったら良いのか、方向性をつかむことができるでしょう。

(以下は英語版紹介文です)

Learning how to use PHPUnit doesn't have to suck

Your code is untested and fixing bugs is tedious

You know you need something better, but time just doesn't seem to be on your side. Making things "right" is costly and you need to deliver working code NOW.

Writing tests is time-consuming and you're not sure how to fit it in

Tests would be great but there are real deadlines to meet. You can't stop development and churn away for hours just to add tests around what you know already works.

PHPUnit is the unit testing framework of choice, but it's intimidating

It looks hard to use and difficult to understand. You have little-to-no experience with it and just figuring out where to start feels daunting. You're left wondering how you use it to test all this stuff you're responsible for.

You don't have time to slow down development

You need to write solid, bug-free code, but your path is filled with manual tests and an application that breaks every time you change it.

You could go home from work, on-time and happy.

Life would be sweet with a solid set of tests

If you already had tests, you'd probably catch bugs faster.

You could refactor your code ruthlessly

Your tests would tell you when a requirements change broke something.

With tests, you'd push code to production with confidence

No longer would you dread the bug reports. You'd happily make changes knowing that your safety net is there. You'd try out new features guiding yourself with tests.

You can make this happen after reading "The Grumpy Programmer's PHPUnit Cookbook"

You'll know exactly how to tackle your existing code.

You'll know how to drive new features with your tests.

You'll write tests that run fast and keep you moving quickly.

  • 本書をシェアする

This book is a translation into 日本語 of The Grumpy Programmer's PHPUnit Cookbook which was originally written in English.

著者について

Chris Hartjes
Chris Hartjes

Chris Hartjes has been building web applications of all shapes and sizes since 1998, with a focus on best practices and how to use testing as an effective development tool.

By day he works as a Senior QA Engineer for Mozilla while by night he works on building his online info-product empire through http://grumpy-learning.com. He also is one of the organizers of the True North PHP conference.

He lives in Milton, Ontario, Canada with his long-suffering wife, two daughters, and a feline Office Manager.

Hidenori Goto
Hidenori Goto

PHPメンターズ/日本Symfonyユーザー会/ドメイン駆動設計/温泉

Leanpubは無条件かつノーリスクで100%の満足を保証します

Leanpubでお買い上げいただいた書籍は、ご購入後45日以内であれば全額返金いたします。払い戻しはわずか2クリックで完了します。払い戻し処理は手作業で行うため、完了まで数日かかる場合があります。詳しくは利用規約をご覧ください。

Write and Publish on Leanpub

Authors and publishers use Leanpub to publish amazing in-progress and completed ebooks, just like this one. You can use Leanpub to write, publish and sell your book as well! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub