From c6e430a8a8544b9716eaa4dabf370987dd5c7ebd Mon Sep 17 00:00:00 2001 From: Avtandil Kikabidze Date: Tue, 23 Aug 2016 18:35:36 +0400 Subject: [PATCH] Improved Tests folder structure --- composer.json | 2 +- phpunit.xml.dist | 2 +- tests/{Bootstrap.php => bootstrap.php} | 4 +--- tests/{TelegramBot/Tests => unit}/Commands/CommandTest.php | 6 +++--- .../Tests => unit}/Commands/CommandTestCase.php | 4 ++-- .../Commands/UserCommands/EchoCommandTest.php | 6 +++--- .../Commands/UserCommands/HelpCommandTest.php | 6 +++--- tests/{TelegramBot/Tests => unit}/ConversationTest.php | 2 +- tests/{TelegramBot/Tests => unit}/Entities/ChatTest.php | 2 +- .../Tests => unit}/Entities/InlineKeyboardButtonTest.php | 2 +- tests/{TelegramBot/Tests => unit}/Entities/MessageTest.php | 2 +- .../Tests => unit}/Entities/ReplyToMessageTest.php | 2 +- .../Tests => unit}/Entities/ServerResponseTest.php | 2 +- tests/{TelegramBot/Tests => unit}/Entities/UpdateTest.php | 2 +- tests/{TelegramBot/Tests => unit}/TelegramLogTest.php | 2 +- tests/{TelegramBot/Tests => unit}/TelegramTest.php | 2 +- tests/{TelegramBot/Tests => unit}/TestCase.php | 2 +- tests/{TelegramBot/Tests => unit}/TestHelpers.php | 2 +- 18 files changed, 25 insertions(+), 27 deletions(-) rename tests/{Bootstrap.php => bootstrap.php} (92%) rename tests/{TelegramBot/Tests => unit}/Commands/CommandTest.php (97%) rename tests/{TelegramBot/Tests => unit}/Commands/CommandTestCase.php (93%) rename tests/{TelegramBot/Tests => unit}/Commands/UserCommands/EchoCommandTest.php (92%) rename tests/{TelegramBot/Tests => unit}/Commands/UserCommands/HelpCommandTest.php (92%) rename tests/{TelegramBot/Tests => unit}/ConversationTest.php (99%) rename tests/{TelegramBot/Tests => unit}/Entities/ChatTest.php (96%) rename tests/{TelegramBot/Tests => unit}/Entities/InlineKeyboardButtonTest.php (97%) rename tests/{TelegramBot/Tests => unit}/Entities/MessageTest.php (98%) rename tests/{TelegramBot/Tests => unit}/Entities/ReplyToMessageTest.php (97%) rename tests/{TelegramBot/Tests => unit}/Entities/ServerResponseTest.php (99%) rename tests/{TelegramBot/Tests => unit}/Entities/UpdateTest.php (97%) rename tests/{TelegramBot/Tests => unit}/TelegramLogTest.php (98%) rename tests/{TelegramBot/Tests => unit}/TelegramTest.php (98%) rename tests/{TelegramBot/Tests => unit}/TestCase.php (92%) rename tests/{TelegramBot/Tests => unit}/TestHelpers.php (99%) diff --git a/composer.json b/composer.json index 5e17f8ea2..28d2981bf 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ }, "autoload-dev": { "psr-4": { - "Longman\\TelegramBot\\Tests\\": "tests/TelegramBot/Tests" + "Longman\\TelegramBot\\Tests\\Unit\\": "tests/unit" } }, "require-dev": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 924c4327f..4a39ab878 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -2,7 +2,7 @@