Exemple #1
0
 /**
  * @runInSeparateProcess
  */
 public function testClientGet()
 {
     $url = 'http://example.test.org';
     $data = array('abc' => 'def', 'hello' => array('world', 'mars' => 'attack'), 'more""funny ' => 'element$"');
     $fullUrl = $url . '?' . http_build_query($data, '', '&');
     $headers_list = xdebug_get_headers();
     $this->assertNotContains("Location: {$url}", $headers_list);
     $this->assertNotContains("Location: {$fullUrl}", $headers_list);
     OpauthStrategy::clientGet($url, $data, false);
     $headers_list = xdebug_get_headers();
     $this->assertNotContains("Location: {$url}", $headers_list);
     $this->assertContains("Location: {$fullUrl}", $headers_list);
 }