mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-16 17:06:37 +00:00
Support for urls with query parameters
This commit is contained in:
@@ -3106,6 +3106,23 @@ class CurlTest extends \PHPUnit\Framework\TestCase
|
||||
),
|
||||
'expected' => 'https://www.example.com/?a=1&b=2&c=3',
|
||||
),
|
||||
array(
|
||||
'args' => array(
|
||||
'url' => 'https://www.example.com/?a=base',
|
||||
'mixed_data' => array(
|
||||
'b' => '2',
|
||||
'c' => '3',
|
||||
),
|
||||
),
|
||||
'expected' => 'https://www.example.com/?a=base&b=2&c=3',
|
||||
),
|
||||
array(
|
||||
'args' => array(
|
||||
'url' => 'https://www.example.com/?a=base',
|
||||
'mixed_data' => 'b=2&c=3'
|
||||
),
|
||||
'expected' => 'https://www.example.com/?a=base&b=2&c=3',
|
||||
),
|
||||
array(
|
||||
'args' => array(
|
||||
'url' => 'https://www.example.com/',
|
||||
|
||||
Reference in New Issue
Block a user