Separate POST Content-Type test

This commit is contained in:
Zach Borboa
2014-05-13 20:59:49 -07:00
parent 063a5b1f01
commit aef528a568
+4 -1
View File
@@ -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',