MockIisRequest.php 613 B

1234567891011121314151617181920212223242526
  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\action;
  9. class MockIisRequest extends \lithium\action\Request {
  10. protected function _init() {
  11. parent::_init();
  12. $this->_env = array(
  13. 'PLATFORM' => 'IIS',
  14. 'SCRIPT_NAME' => '\index.php',
  15. 'SCRIPT_FILENAME' => false,
  16. 'DOCUMENT_ROOT' => false,
  17. 'PATH_TRANSLATED' => '\lithium\app\webroot\index.php',
  18. 'HTTP_PC_REMOTE_ADDR' => '123.456.789.000'
  19. );
  20. }
  21. }
  22. ?>