第52章 Zend_Test

目次

52.1. 導入
52.2. Zend_Test_PHPUnit
52.2.1. テストケースの起動
52.2.2. コントローラおよび MVC アプリケーションのテスト
52.2.2.1. コントローラのテストと Redirector アクションヘルパー
52.2.3. アサーション
52.2.3.1. CSS セレクタアサーション
52.2.3.2. XPath アサーション
52.2.3.3. リダイレクトアサーション
52.2.3.4. レスポンスヘッダアサーション
52.2.3.5. リクエストアサーション
52.2.4. 例
52.3. Zend_Test_PHPUnit_Db
52.3.1. Quickstart
52.3.1.1. Setup a Database TestCase
52.3.1.2. Specify a seed dataset
52.3.1.3. A few initial database tests
52.3.2. Usage, API and Extensions Points
52.3.2.1. The Zend_Test_PHPUnit_DatabaseTestCase class
52.3.2.2. Integrating Database Testing with the ControllerTestCase
52.3.3. データベース・テスト・アダプタの使用

52.1. 導入

Zend_Test は、Zend Framework で作成したアプリケーションのユニットテストを支援するツールを提供します。 現在用意しているのは、Zend Framework MVC アプリケーションのテストを支援する機能です。