Zf7696Bootstrap.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Application
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * @category Zend
  24. * @package Zend_Application
  25. * @subpackage UnitTests
  26. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  27. * @license http://framework.zend.com/license/new-bsd New BSD License
  28. */
  29. class Zf7696Bootstrap extends Zend_Application_Bootstrap_BootstrapAbstract
  30. {
  31. public $barExecuted = 0;
  32. public $fooExecuted = 0;
  33. public $executedFooResource = false;
  34. public $executedFooBarResource = false;
  35. protected $_arbitraryValue;
  36. public function run()
  37. {
  38. }
  39. protected function _initFoo()
  40. {
  41. $this->fooExecuted++;
  42. }
  43. protected function _initBar()
  44. {
  45. $this->barExecuted++;
  46. }
  47. protected function _initBarbaz()
  48. {
  49. $o = new stdClass();
  50. $o->baz = 'Baz';
  51. return $o;
  52. }
  53. protected function _initFrontController()
  54. {
  55. $front = Zend_Controller_Front::getInstance();
  56. $front->addModuleDirectory(dirname(__FILE__) . '/modules');
  57. return $front;
  58. }
  59. public function setArbitrary($value)
  60. {
  61. $this->_arbitraryValue = $value;
  62. return $this;
  63. }
  64. public function getArbitrary()
  65. {
  66. return $this->_arbitraryValue;
  67. }
  68. }