Added by Luke Crouch, last edited by Luke Crouch on Oct 01, 2008  (view change)

Labels

 
(None)
New Proposal Template

This page has been created from a template that uses "zones." To proceed:

  1. When you are ready for community review, move this page to the Ready for Review section on the edit page.
No placeholders allowed!

Please do not create placeholders. Wait until you have sufficient content to replace all sample data in the proposal template before creating your proposal document.

Zend Framework: Zend_Test_ViewRenderer Component Proposal

Proposed Component Name Zend_Test_ViewRenderer
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_Test_ViewRenderer
Proposers Luke Crouch
Zend Liaison TBD
Revision 1.0 - 1 October 2008: Initial Draft. (wiki revision: 3)

Table of Contents

1. Overview

Zend_Test_ViewRenderer is a simple stub ViewRenderer that merely instantiates a default Zend_View object to the action controller to enable unit tests to test controllers in isolation - by asserting against the variables assigned to the view.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

  • This component will instantiate a stub Zend_View layer for controllers.

4. Dependencies on Other Framework Components

  • Zend_Controller

5. Theory of Operation

The component should be added via Zend_Controller_Action_HelperBroker during controller tests' setUp().

6. Milestones / Tasks

  • Milestone 1: Working prototype checked into the incubator supporting use cases #1
  • Milestone 2: Unit tests exist, work, and are checked into SVN.
  • Milestone 3: Initial documentation exists.

7. Class Index

  • Zend_Test_ViewRenderer

8. Use Cases

9. Class Skeletons