From 6ba7db89c8972b43077e1a8b635105a7b5562142 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 29 Dec 2019 14:23:41 +0100 Subject: [PATCH] Improve tests --- examples/downloadRenameBot.php | 2 +- tests/makephar.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/downloadRenameBot.php b/examples/downloadRenameBot.php index a4fe57f4..0056b0f3 100644 --- a/examples/downloadRenameBot.php +++ b/examples/downloadRenameBot.php @@ -123,7 +123,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler 'reply_to_msg_id' => $messageId, 'media' => [ '_' => 'inputMediaUploadedDocument', - 'file' => $file, + 'file' => $url, 'attributes' => [ ['_' => 'documentAttributeFilename', 'file_name' => $name] ] diff --git a/tests/makephar.sh b/tests/makephar.sh index dfb2921f..b011e75d 100755 --- a/tests/makephar.sh +++ b/tests/makephar.sh @@ -113,6 +113,7 @@ export MTPROTO_SETTINGS='{"logger":{"logger_level":5}}' php tools/makephar.php $HOME/phar5 "madeline$php$branch.phar" $TRAVIS_COMMIT +cat tests/testing.php tests/testing.php <