MockDispatcherCommand.php 818 B

12345678910111213141516171819202122232425262728293031323334353637
  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\console;
  9. use lithium\core\Environment;
  10. class MockDispatcherCommand extends \lithium\console\Command {
  11. protected $_classes = array(
  12. 'response' => 'lithium\tests\mocks\console\MockResponse'
  13. );
  14. public function testRun() {
  15. $this->response->testAction = __FUNCTION__;
  16. }
  17. public function run($param = null) {
  18. $this->response->testAction = __FUNCTION__;
  19. $this->response->testParam = $param;
  20. }
  21. public function testAction() {
  22. $this->response->testAction = __FUNCTION__;
  23. }
  24. public function testEnv() {
  25. $this->response->environment = Environment::get();
  26. }
  27. }
  28. ?>