1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

fix(tests): general fixes after php 8

This commit is contained in:
Torsten Dittmann 2021-05-20 10:54:18 +02:00
parent 787931b45b
commit faed19dacb
3 changed files with 17 additions and 72 deletions

View file

@ -46,7 +46,7 @@
"utopia-php/cli": "0.11.*",
"utopia-php/config": "0.2.*",
"utopia-php/locale": "0.3.*",
"utopia-php/registry": "0.4.*",
"utopia-php/registry": "0.5.*",
"utopia-php/preloader": "0.2.*",
"utopia-php/domains": "1.1.*",
"utopia-php/swoole": "0.2.*",

74
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "8e60a590126f27cb20bdfbbc1b73abbb",
"content-hash": "d722be0ec2f73f6436fc99b64bd69f0a",
"packages": [
{
"name": "adhocore/jwt",
@ -1899,16 +1899,16 @@
},
{
"name": "utopia-php/registry",
"version": "0.4.0",
"version": "0.5.0",
"source": {
"type": "git",
"url": "https://github.com/utopia-php/registry.git",
"reference": "7aebbc6c5f3f04ff7a35ac3dad39fa91c9bd7c2d"
"reference": "bedc4ed54527b2803e6dfdccc39449f98522b70d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/utopia-php/registry/zipball/7aebbc6c5f3f04ff7a35ac3dad39fa91c9bd7c2d",
"reference": "7aebbc6c5f3f04ff7a35ac3dad39fa91c9bd7c2d",
"url": "https://api.github.com/repos/utopia-php/registry/zipball/bedc4ed54527b2803e6dfdccc39449f98522b70d",
"reference": "bedc4ed54527b2803e6dfdccc39449f98522b70d",
"shasum": ""
},
"require": {
@ -1918,7 +1918,6 @@
"phpunit/phpunit": "^9.3",
"vimeo/psalm": "4.0.1"
},
"default-branch": true,
"type": "library",
"autoload": {
"psr-4": {
@ -1946,9 +1945,9 @@
],
"support": {
"issues": "https://github.com/utopia-php/registry/issues",
"source": "https://github.com/utopia-php/registry/tree/0.4.0"
"source": "https://github.com/utopia-php/registry/tree/0.5.0"
},
"time": "2021-03-10T06:50:09+00:00"
"time": "2021-03-10T10:45:22+00:00"
},
{
"name": "utopia-php/storage",
@ -5932,65 +5931,6 @@
},
"time": "2021-05-01T20:56:25+00:00"
},
{
"name": "webmozart/assert",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/webmozarts/assert.git",
"reference": "4631e2c7d2d7132adac9fd84d4c1a98c10a6e049"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webmozarts/assert/zipball/4631e2c7d2d7132adac9fd84d4c1a98c10a6e049",
"reference": "4631e2c7d2d7132adac9fd84d4c1a98c10a6e049",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0",
"symfony/polyfill-ctype": "^1.8"
},
"conflict": {
"phpstan/phpstan": "<0.12.20",
"vimeo/psalm": "<3.9.1"
},
"require-dev": {
"phpunit/phpunit": "^8.5.13"
},
"default-branch": true,
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.10-dev"
}
},
"autoload": {
"psr-4": {
"Webmozart\\Assert\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bernhard Schussek",
"email": "bschussek@gmail.com"
}
],
"description": "Assertions to validate method input/output with nice error messages.",
"keywords": [
"assert",
"check",
"validate"
],
"support": {
"issues": "https://github.com/webmozarts/assert/issues",
"source": "https://github.com/webmozarts/assert/tree/master"
},
"time": "2021-02-28T20:01:57+00:00"
},
{
"name": "webmozart/path-util",
"version": "2.3.0",

View file

@ -57,14 +57,16 @@ class RealtimeChannelsTest extends TestCase
]
]
]));
$roles = Realtime::getRoles();
$parsedChannels = Realtime::parseChannels([0 => $channel]);
Realtime::subscribe(
'1',
$this->connectionsCount,
Realtime::getRoles(),
$roles,
$this->subscriptions,
$this->connections,
Realtime::parseChannels([0 => $channel])
$parsedChannels
);
$this->connectionsCount++;
@ -80,13 +82,16 @@ class RealtimeChannelsTest extends TestCase
'$id' => ''
]));
$roles = Realtime::getRoles();
$parsedChannels = Realtime::parseChannels([0 => $channel]);
Realtime::subscribe(
'1',
$this->connectionsCount,
Realtime::getRoles(),
$roles,
$this->subscriptions,
$this->connections,
Realtime::parseChannels([0 => $channel])
$parsedChannels
);
$this->connectionsCount++;