public function _postConstruct() { parent::_postConstruct(); // when running from the command line, these elements are empty. // add them so that web-like testing can occur. $this->_request->server['HTTP_HOST'] = 'example.com'; $this->_request->server['SCRIPT_NAME'] = '/path/to/index.php'; $this->_request->server['PATH_INFO'] = '/appname/action'; $this->_request->server['QUERY_STRING'] = 'foo=bar&baz=dib'; $this->_request->server['REQUEST_URI'] = $this->_request->server['SCRIPT_NAME'] . $this->_request->server['PATH_INFO'] . '?' . $this->_request->server['QUERY_STRING']; // emulate GET vars from the URI parse_str($this->_request->server['QUERY_STRING'], $this->_request->get); }
/** * * Setup; runs after each test method. * */ public function teardown() { parent::teardown(); }
/** * * Constructor. * * @param array $config User-defined configuration parameters. * */ public function __construct($config = null) { $this->skip('abstract class'); parent::__construct($config); }