Skip to content

Commit b6b3b2e

Browse files
committed
Reorder and add xml content-type tests
1 parent 61964a9 commit b6b3b2e

File tree

1 file changed

+24
-13
lines changed

1 file changed

+24
-13
lines changed

tests/PHPCurlClass/PHPCurlClassTest.php

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -572,24 +572,35 @@ function xmlAssertion($key, $value)
572572
PHPUnit_Framework_Assert::assertInstanceOf('SimpleXMLElement', $test->curl->response);
573573
}
574574

575-
xmlAssertion('Content-Type', 'application/rss+xml; charset=utf-8');
576-
xmlAssertion('content-type', 'application/rss+xml; charset=utf-8');
577575
xmlAssertion('Content-Type', 'application/rss+xml');
578-
xmlAssertion('content-type', 'application/rss+xml');
579-
xmlAssertion('CONTENT-TYPE', 'application/rss+xml');
580-
xmlAssertion('CONTENT-TYPE', 'application/rss+xml');
581-
xmlAssertion('Content-Type', 'application/xml; charset=utf-8');
582-
xmlAssertion('content-type', 'application/xml; charset=utf-8');
576+
xmlAssertion('Content-Type', 'application/rss+xml; charset=utf-8');
577+
xmlAssertion('Content-Type', 'application/rss+xml;charset=utf-8');
583578
xmlAssertion('Content-Type', 'application/xml');
584-
xmlAssertion('content-type', 'application/xml');
585-
xmlAssertion('CONTENT-TYPE', 'application/xml');
586-
xmlAssertion('CONTENT-TYPE', 'application/xml');
587-
xmlAssertion('Content-Type', 'text/xml; charset=utf-8');
588-
xmlAssertion('content-type', 'text/xml; charset=utf-8');
579+
xmlAssertion('Content-Type', 'application/xml; charset=utf-8');
580+
xmlAssertion('Content-Type', 'application/xml;charset=utf-8');
589581
xmlAssertion('Content-Type', 'text/xml');
582+
xmlAssertion('Content-Type', 'text/xml; charset=utf-8');
583+
xmlAssertion('Content-Type', 'text/xml;charset=utf-8');
584+
585+
xmlAssertion('content-type', 'application/rss+xml');
586+
xmlAssertion('content-type', 'application/rss+xml; charset=utf-8');
587+
xmlAssertion('content-type', 'application/rss+xml;charset=utf-8');
588+
xmlAssertion('content-type', 'application/xml');
589+
xmlAssertion('content-type', 'application/xml; charset=utf-8');
590+
xmlAssertion('content-type', 'application/xml;charset=utf-8');
590591
xmlAssertion('content-type', 'text/xml');
592+
xmlAssertion('content-type', 'text/xml; charset=utf-8');
593+
xmlAssertion('content-type', 'text/xml;charset=utf-8');
594+
595+
xmlAssertion('CONTENT-TYPE', 'application/rss+xml');
596+
xmlAssertion('CONTENT-TYPE', 'application/rss+xml; charset=utf-8');
597+
xmlAssertion('CONTENT-TYPE', 'application/rss+xml;charset=utf-8');
598+
xmlAssertion('CONTENT-TYPE', 'application/xml');
599+
xmlAssertion('CONTENT-TYPE', 'application/xml; charset=utf-8');
600+
xmlAssertion('CONTENT-TYPE', 'application/xml;charset=utf-8');
591601
xmlAssertion('CONTENT-TYPE', 'text/xml');
592-
xmlAssertion('CONTENT-TYPE', 'text/xml');
602+
xmlAssertion('CONTENT-TYPE', 'text/xml; charset=utf-8');
603+
xmlAssertion('CONTENT-TYPE', 'text/xml;charset=utf-8');
593604
}
594605

595606
public function testArrayToStringConversion()

0 commit comments

Comments
 (0)