1
0
mirror of synced 2024-11-21 11:26:02 +03:00

update dependencies

This commit is contained in:
Pavel 2022-12-22 14:55:13 +03:00
parent 7a92435f9f
commit 2c5fe64779
6 changed files with 32 additions and 4468 deletions

View File

@ -16,17 +16,17 @@
"ext-curl": "*",
"ext-json": "*",
"jms/serializer": "3.*",
"symfony/validator": "5.4.*",
"doctrine/annotations": "1.13.*",
"doctrine/cache": "1.11.*",
"guzzlehttp/guzzle": "6.*",
"symfony/intl": "^5.4"
"symfony/validator": "5.4.*|^6",
"doctrine/annotations": "^1",
"guzzlehttp/guzzle": "7.*",
"symfony/intl": "5.4.*|^6",
"symfony/cache": "5.4.*|^6"
},
"require-dev": {
"phpmd/phpmd": "2.*",
"squizlabs/php_codesniffer": "3.4.*",
"symfony/dotenv": "5.4.*",
"phpunit/phpunit": "8.5.*",
"phpunit/phpunit": "^9",
"phpstan/phpstan": "0.12.*"
},
"support": {

4436
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/6.5/phpunit.xsd"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
colors="false"
bootstrap="tests/bootstrap.php"
@ -15,22 +13,21 @@
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
stopOnRisky="false"
>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="clover.xml"/>
<log type="junit" target="/tmp/logfile.xml"/>
</logging>
stopOnRisky="false">
<coverage>
<include>
<directory>src</directory>
</include>
<report>
<clover outputFile="clover.xml"/>
</report>
</coverage>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<logging>
<junit outputFile="/tmp/logfile.xml"/>
</logging>
</phpunit>

View File

@ -24,9 +24,9 @@ use RuntimeException;
use Symfony\Component\Validator\Validation;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Utils;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
use function GuzzleHttp\Psr7\stream_for;
/**
* Class HttpClient
@ -137,7 +137,7 @@ class HttpClient
[self::METHOD_POST, self::METHOD_PUT, self::METHOD_PATCH, self::METHOD_DELETE]
) && is_string($requestBody)
) {
$request = $request->withBody(stream_for($requestBody));
$request = $request->withBody(Utils::streamFor($requestBody));
}
$responseObject = null;

View File

@ -33,7 +33,7 @@ class FileTest extends TestCase
null,
null,
false,
$this->getEmptyResponse(400)
$this->getErrorsResponse(400, 'Something is not quite right.')
);
self::expectException(\InvalidArgumentException::class);

View File

@ -6,8 +6,11 @@ if (function_exists('date_default_timezone_set')
date_default_timezone_set(date_default_timezone_get());
}
$loader = include dirname(__DIR__) . '/vendor/autoload.php';
$loader->add('RetailCrm\\Mg\\Bot\\Test', __DIR__);
(static function () {
$loader = include dirname(__DIR__) . '/vendor/autoload.php';
$loader->add('RetailCrm\\Mg\\Bot\\Test', __DIR__);
})();
use Symfony\Component\Dotenv\Dotenv;