From bc2426bcb43515114fa3bd019160869709fe5fac Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 28 Feb 2020 16:53:10 +0100 Subject: [PATCH] Teardown tests --- tests/danog/MadelineProto/FileIdTest.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/danog/MadelineProto/FileIdTest.php b/tests/danog/MadelineProto/FileIdTest.php index a9331d74..d08fbb72 100644 --- a/tests/danog/MadelineProto/FileIdTest.php +++ b/tests/danog/MadelineProto/FileIdTest.php @@ -41,6 +41,16 @@ class FileIdTest extends TestCase self::$MadelineProto->botLogin(\getenv('BOT_TOKEN')); } + /** + * Teardown + * + * @return void + */ + public static function tearDownAfterClass(): void + { + self::$MadelineProto = null; + } + /** * Strip file reference from file ID. *