update dependencies
This commit is contained in:
parent
7a92435f9f
commit
2c5fe64779
@ -16,17 +16,17 @@
|
|||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"jms/serializer": "3.*",
|
"jms/serializer": "3.*",
|
||||||
"symfony/validator": "5.4.*",
|
"symfony/validator": "5.4.*|^6",
|
||||||
"doctrine/annotations": "1.13.*",
|
"doctrine/annotations": "^1",
|
||||||
"doctrine/cache": "1.11.*",
|
"guzzlehttp/guzzle": "7.*",
|
||||||
"guzzlehttp/guzzle": "6.*",
|
"symfony/intl": "5.4.*|^6",
|
||||||
"symfony/intl": "^5.4"
|
"symfony/cache": "5.4.*|^6"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpmd/phpmd": "2.*",
|
"phpmd/phpmd": "2.*",
|
||||||
"squizlabs/php_codesniffer": "3.4.*",
|
"squizlabs/php_codesniffer": "3.4.*",
|
||||||
"symfony/dotenv": "5.4.*",
|
"symfony/dotenv": "5.4.*",
|
||||||
"phpunit/phpunit": "8.5.*",
|
"phpunit/phpunit": "^9",
|
||||||
"phpstan/phpstan": "0.12.*"
|
"phpstan/phpstan": "0.12.*"
|
||||||
},
|
},
|
||||||
"support": {
|
"support": {
|
||||||
|
4436
composer.lock
generated
4436
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
|
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
|
||||||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
|
|
||||||
backupGlobals="false"
|
backupGlobals="false"
|
||||||
colors="false"
|
colors="false"
|
||||||
bootstrap="tests/bootstrap.php"
|
bootstrap="tests/bootstrap.php"
|
||||||
@ -15,22 +13,21 @@
|
|||||||
stopOnFailure="false"
|
stopOnFailure="false"
|
||||||
stopOnIncomplete="false"
|
stopOnIncomplete="false"
|
||||||
stopOnSkipped="false"
|
stopOnSkipped="false"
|
||||||
stopOnRisky="false"
|
stopOnRisky="false">
|
||||||
>
|
<coverage>
|
||||||
|
<include>
|
||||||
|
<directory>src</directory>
|
||||||
|
</include>
|
||||||
|
<report>
|
||||||
|
<clover outputFile="clover.xml"/>
|
||||||
|
</report>
|
||||||
|
</coverage>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Project Test Suite">
|
<testsuite name="Project Test Suite">
|
||||||
<directory>tests</directory>
|
<directory>tests</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
<filter>
|
|
||||||
<whitelist>
|
|
||||||
<directory>src</directory>
|
|
||||||
</whitelist>
|
|
||||||
</filter>
|
|
||||||
|
|
||||||
<logging>
|
<logging>
|
||||||
<log type="coverage-clover" target="clover.xml"/>
|
<junit outputFile="/tmp/logfile.xml"/>
|
||||||
<log type="junit" target="/tmp/logfile.xml"/>
|
|
||||||
</logging>
|
</logging>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
@ -24,9 +24,9 @@ use RuntimeException;
|
|||||||
use Symfony\Component\Validator\Validation;
|
use Symfony\Component\Validator\Validation;
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
use GuzzleHttp\Psr7\Request;
|
use GuzzleHttp\Psr7\Request;
|
||||||
|
use GuzzleHttp\Psr7\Utils;
|
||||||
use GuzzleHttp\Exception\GuzzleException;
|
use GuzzleHttp\Exception\GuzzleException;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
use function GuzzleHttp\Psr7\stream_for;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class HttpClient
|
* Class HttpClient
|
||||||
@ -137,7 +137,7 @@ class HttpClient
|
|||||||
[self::METHOD_POST, self::METHOD_PUT, self::METHOD_PATCH, self::METHOD_DELETE]
|
[self::METHOD_POST, self::METHOD_PUT, self::METHOD_PATCH, self::METHOD_DELETE]
|
||||||
) && is_string($requestBody)
|
) && is_string($requestBody)
|
||||||
) {
|
) {
|
||||||
$request = $request->withBody(stream_for($requestBody));
|
$request = $request->withBody(Utils::streamFor($requestBody));
|
||||||
}
|
}
|
||||||
|
|
||||||
$responseObject = null;
|
$responseObject = null;
|
||||||
|
@ -33,7 +33,7 @@ class FileTest extends TestCase
|
|||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
false,
|
false,
|
||||||
$this->getEmptyResponse(400)
|
$this->getErrorsResponse(400, 'Something is not quite right.')
|
||||||
);
|
);
|
||||||
|
|
||||||
self::expectException(\InvalidArgumentException::class);
|
self::expectException(\InvalidArgumentException::class);
|
||||||
|
@ -6,8 +6,11 @@ if (function_exists('date_default_timezone_set')
|
|||||||
date_default_timezone_set(date_default_timezone_get());
|
date_default_timezone_set(date_default_timezone_get());
|
||||||
}
|
}
|
||||||
|
|
||||||
$loader = include dirname(__DIR__) . '/vendor/autoload.php';
|
(static function () {
|
||||||
$loader->add('RetailCrm\\Mg\\Bot\\Test', __DIR__);
|
$loader = include dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
$loader->add('RetailCrm\\Mg\\Bot\\Test', __DIR__);
|
||||||
|
})();
|
||||||
|
|
||||||
|
|
||||||
use Symfony\Component\Dotenv\Dotenv;
|
use Symfony\Component\Dotenv\Dotenv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user