mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-18 01:48:05 +00:00
Fix numeric data values not being correctly encoded
This commit is contained in:
+3
-2
@@ -68,9 +68,10 @@ class CurlTest extends PHPUnit_Framework_TestCase {
|
||||
'more_data' => array(
|
||||
'param1' => 'something',
|
||||
'param2' => 'other thing',
|
||||
'param3' => '123',
|
||||
'param3' => 123,
|
||||
'param4' => 3.14,
|
||||
),
|
||||
)) === 'test=post_multidimensional&username=myusername&password=mypassword&more_data%5Bparam1%5D=something&more_data%5Bparam2%5D=other%20thing&more_data%5Bparam3%5D=123');
|
||||
)) === 'test=post_multidimensional&username=myusername&password=mypassword&more_data%5Bparam1%5D=something&more_data%5Bparam2%5D=other%20thing&more_data%5Bparam3%5D=123&more_data%5Bparam4%5D=3.14');
|
||||
}
|
||||
|
||||
public function testPostMultidimensionalData() {
|
||||
|
||||
Reference in New Issue
Block a user