mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Separate POST Content-Type test
This commit is contained in:
@@ -466,12 +466,15 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
);
|
||||
}
|
||||
|
||||
public function testPostContentTypes()
|
||||
public function testPostUrlEncodedContentType()
|
||||
{
|
||||
$test = new Test();
|
||||
$test->server('server', 'POST', 'foo=bar');
|
||||
$this->assertEquals($test->curl->request_headers['Content-Type'], 'application/x-www-form-urlencoded');
|
||||
}
|
||||
|
||||
public function testPostFormDataContentType()
|
||||
{
|
||||
$test = new Test();
|
||||
$test->server('server', 'POST', array(
|
||||
'foo' => 'bar',
|
||||
|
||||
Reference in New Issue
Block a user