Skip to content

Commit f71cd57

Browse files
committed
Converted unit-xml
1 parent f651088 commit f71cd57

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

phpunit.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<?xml version="1.0" encoding="UTF-8" ?>
2-
<phpunit bootstrap="vendor/autoload.php" colors="true" verbose="true" stopOnFailure="false">
3-
<testsuites>
4-
<testsuite name="tornelib-php-netcurl">
5-
<directory>tests</directory>
6-
</testsuite>
7-
</testsuites>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<testsuites>
4+
<testsuite name="tornelib-php-netcurl">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
88
</phpunit>

src/Module/Config/WrapperConfig.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,13 @@ public function setRequestUrl($requestUrl)
644644
* @param null $requestData
645645
* @param null $requestMethod
646646
* @return array
647+
* @throws Exception
647648
* @since 6.1.0
648649
*/
649650
public function getRequestData($dataType = null, $requestData = null, $requestMethod = null)
650651
{
651652
if (is_null($dataType)) {
653+
/** @var DataType $dataType */
652654
$dataType = $this->requestDataType;
653655
}
654656
if (is_null($requestData)) {

src/Module/Network/Wrappers/CurlWrapper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,8 @@ private function setProperCustomHeader()
626626
}
627627

628628
foreach ($this->customPreHeaders as $headerKey => $headerValue) {
629-
$testHead = explode(":", $headerValue, 2);
629+
//$testHead = explode(":", $headerValue, 2);
630+
$testHead = is_string($headerValue) ? explode(":", $headerValue, 2) : $headerValue;
630631
if (isset($testHead[1])) {
631632
$this->customHeaders[] = $headerValue;
632633
} elseif (!is_numeric($headerKey)) {

0 commit comments

Comments
 (0)