예제 #1
0
 /**
  * Get spoofed request class instance
  *
  * @param string $url
  * @param string $method
  * @param array $post
  * @return \Arvici\Heart\Http\Request
  */
 private function spoofedRequest($url, $method = 'get', $post = array())
 {
     TestUtils::clear();
     //$url = '/get/test?param1=1&param2=yes&param3[]=1&param3[]=2&param3[]=3';
     $urlparts = parse_url($url);
     parse_str($urlparts['query'], $get);
     TestUtils::spoofUrl($url, $method, $get, $post);
     return Http::getInstance()->request();
 }
예제 #2
0
 private function spoof($url, $method, $get = array(), $post = array())
 {
     TestUtils::spoofUrl($url, $method, $get, $post);
 }