예제 #1
0
 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);
 }
예제 #2
0
파일: Link.php 프로젝트: btweedy/foresmo
 /**
  * 
  * Setup; runs after each test method.
  * 
  */
 public function teardown()
 {
     parent::teardown();
 }
예제 #3
0
 /**
  * 
  * Constructor.
  * 
  * @param array $config User-defined configuration parameters.
  * 
  */
 public function __construct($config = null)
 {
     $this->skip('abstract class');
     parent::__construct($config);
 }