diff --git a/README.md b/README.md index 48d868b50..8710a2f1a 100644 --- a/README.md +++ b/README.md @@ -435,6 +435,7 @@ Want to add your own open-source project to this list? [Click here!](https://doc * Enable or disable web bot attachment menu ยป: messages.toggleBotInAttachMenu * Enable/disable message signatures in channels: channels.toggleSignatures * Enable/disable top peers: contacts.toggleTopPeers + * Escape string for MadelineProto's HTML entity converter: htmlEscape * Escape string for URL: markdownUrlEscape * Escape string for markdown code section: markdownCodeEscape * Escape string for markdown codeblock: markdownCodeblockEscape diff --git a/composer.json b/composer.json index 5ceddd5d0..556122c4a 100644 --- a/composer.json +++ b/composer.json @@ -126,8 +126,8 @@ "docs": "php tools/build_docs.php", "docs-fix": "tools/fix_docs.sh", "phpunit": "@php -dzend.assertions=1 ./vendor/bin/phpunit -c phpunit-noparallel.xml", - "paratest": "@php -dzend.assertions=1 ./vendor/bin/paratest", - "paratest-light": "@php -dzend.assertions=1 ./vendor/bin/paratest -c phpunit-light.xml", + "paratest": "@php -dzend.assertions=1 ./vendor/bin/paratest -f", + "paratest-light": "@php -dzend.assertions=1 ./vendor/bin/paratest -f -c phpunit-light.xml", "bin": "echo 'bin not installed'", "post-install-cmd": ["@composer bin all install --ansi"], "post-update-cmd": ["@composer bin all update --ansi"] diff --git a/docs b/docs index d824948d8..1530ed27e 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit d824948d8a8c38446bb322dc73b6dcb86e59d3c4 +Subproject commit 1530ed27ead3990e17be6fe0d8c3fb2a3adb8dd7 diff --git a/tests/danog/MadelineProto/DataCenterTest.php b/tests/danog/MadelineProto/DataCenterTest.php index 3ab2cb3b5..80a6eb4e5 100644 --- a/tests/danog/MadelineProto/DataCenterTest.php +++ b/tests/danog/MadelineProto/DataCenterTest.php @@ -23,10 +23,6 @@ use danog\MadelineProto\Stream\Transport\DefaultStream; use danog\MadelineProto\Stream\Transport\WssStream; use danog\MadelineProto\Stream\Transport\WsStream; use Generator; -use LeProxy\LeProxy\LeProxyServer; -use PHPUnit\Framework\TestCase; -use React\EventLoop\Loop; -use React\Socket\ServerInterface; use Throwable; use function Amp\ByteStream\splitLines; diff --git a/tests/danog/MadelineProto/FileIdTest.php b/tests/danog/MadelineProto/FileIdTest.php index c85e845dc..124a811e9 100644 --- a/tests/danog/MadelineProto/FileIdTest.php +++ b/tests/danog/MadelineProto/FileIdTest.php @@ -104,7 +104,7 @@ class FileIdTest extends MadelineTestCase [$type, $fileIdStr, $uniqueFileIdStr] = $fullInfo; } else { - $this->assertArrayHasKey($type, $res); + $this->assertArrayHasKey($type, $res, json_encode($res)); $res = $res[$type]; }