MockFormRenderer.php 654 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Lithium: the most rad php framework
  4. *
  5. * @copyright Copyright 2013, Union of RAD (http://union-of-rad.org)
  6. * @license http://opensource.org/licenses/bsd-license.php The BSD License
  7. */
  8. namespace lithium\tests\mocks\template\helper;
  9. use lithium\action\Request;
  10. class MockFormRenderer extends \lithium\template\view\Renderer {
  11. public function request() {
  12. if (empty($this->_request)) {
  13. $this->_request = new Request();
  14. $this->_request->params += array('controller' => 'posts', 'action' => 'add');
  15. }
  16. return $this->_request;
  17. }
  18. public function render($template, $data = array(), array $options = array()) {
  19. }
  20. }
  21. ?>