mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-15 08:26:24 +00:00
Decode atom+xml responses seamlessly
This commit is contained in:
@@ -574,6 +574,8 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
PHPUnit_Framework_Assert::assertInstanceOf('SimpleXMLElement', $test->curl->response);
|
||||
}
|
||||
|
||||
xmlAssertion('Content-Type', 'application/atom+xml; charset=UTF-8');
|
||||
xmlAssertion('Content-Type', 'application/atom+xml;charset=UTF-8');
|
||||
xmlAssertion('Content-Type', 'application/rss+xml');
|
||||
xmlAssertion('Content-Type', 'application/rss+xml; charset=utf-8');
|
||||
xmlAssertion('Content-Type', 'application/rss+xml;charset=utf-8');
|
||||
@@ -584,6 +586,8 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
xmlAssertion('Content-Type', 'text/xml; charset=utf-8');
|
||||
xmlAssertion('Content-Type', 'text/xml;charset=utf-8');
|
||||
|
||||
xmlAssertion('content-type', 'application/atom+xml; charset=UTF-8');
|
||||
xmlAssertion('content-type', 'application/atom+xml;charset=UTF-8');
|
||||
xmlAssertion('content-type', 'application/rss+xml');
|
||||
xmlAssertion('content-type', 'application/rss+xml; charset=utf-8');
|
||||
xmlAssertion('content-type', 'application/rss+xml;charset=utf-8');
|
||||
@@ -594,6 +598,8 @@ class CurlTest extends PHPUnit_Framework_TestCase
|
||||
xmlAssertion('content-type', 'text/xml; charset=utf-8');
|
||||
xmlAssertion('content-type', 'text/xml;charset=utf-8');
|
||||
|
||||
xmlAssertion('CONTENT-TYPE', 'application/atom+xml; charset=UTF-8');
|
||||
xmlAssertion('CONTENT-TYPE', 'application/atom+xml;charset=UTF-8');
|
||||
xmlAssertion('CONTENT-TYPE', 'application/rss+xml');
|
||||
xmlAssertion('CONTENT-TYPE', 'application/rss+xml; charset=utf-8');
|
||||
xmlAssertion('CONTENT-TYPE', 'application/rss+xml;charset=utf-8');
|
||||
|
||||
Reference in New Issue
Block a user