We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f77563 + bf10280 commit fadcbf1Copy full SHA for fadcbf1
tests/PHPCurlClass/PHPCurlClassTest.php
@@ -64,6 +64,22 @@ public function testCaseInsensitiveArraySet()
64
$this->assertCount(2, $array);
65
}
66
67
+ public function testBuildPostDataArgSeparator()
68
+ {
69
+ $data = array(
70
+ 'foo' => 'Hello',
71
+ 'bar' => 'World',
72
+ );
73
+
74
+ foreach (array(false, '&', '&') as $arg_separator) {
75
+ if ($arg_separator) {
76
+ ini_set('arg_separator.output', $arg_separator);
77
+ }
78
+ $curl = new Curl();
79
+ $this->assertEquals('foo=Hello&bar=World', $curl->buildPostData($data));
80
81
82
83
public function testUserAgent()
84
{
85
$php_version = 'PHP\/' . PHP_VERSION;
0 commit comments