MockCommand.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. /**
  10. * This is the Mock Command
  11. *
  12. */
  13. class MockCommand extends \lithium\console\Command {
  14. public $case = null;
  15. public $face = true;
  16. /**
  17. * Mace.
  18. *
  19. * @var string Describe value of mace.
  20. */
  21. public $mace = 'test';
  22. public $race;
  23. /**
  24. * Lace.
  25. *
  26. * @var boolean Describe value of lace.
  27. */
  28. public $lace = true;
  29. protected $_dontShow = null;
  30. protected $_classes = array(
  31. 'response' => 'lithium\tests\mocks\console\MockResponse'
  32. );
  33. public function testRun() {
  34. $this->response->testAction = __FUNCTION__;
  35. }
  36. public function clear() {}
  37. public function testReturnNull() {
  38. return null;
  39. }
  40. public function testReturnTrue() {
  41. return true;
  42. }
  43. public function testReturnFalse() {
  44. return false;
  45. }
  46. public function testReturnNegative1() {
  47. return -1;
  48. }
  49. public function testReturn1() {
  50. return 1;
  51. }
  52. public function testReturn3() {
  53. return 3;
  54. }
  55. public function testReturnString() {
  56. return 'this is a string';
  57. }
  58. public function testReturnEmptyArray() {
  59. return array();
  60. }
  61. public function testReturnArray() {
  62. return array('a' => 'b');
  63. }
  64. }
  65. ?>