Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
27f55ca6
Unverified
Commit
27f55ca6
authored
Aug 23, 2016
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move all tests into a dedicated namespace and folder.
Update composer locks.
parent
9af785f8
Changes
18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
256 additions
and
119 deletions
+256
-119
composer.json
composer.json
+1
-1
composer.lock
composer.lock
+232
-83
Bootstrap.php
tests/Bootstrap.php
+1
-1
CommandTest.php
tests/TelegramBot/Tests/Commands/CommandTest.php
+3
-3
CommandTestCase.php
tests/TelegramBot/Tests/Commands/CommandTestCase.php
+2
-2
EchoCommandTest.php
...legramBot/Tests/Commands/UserCommands/EchoCommandTest.php
+3
-4
HelpCommandTest.php
...legramBot/Tests/Commands/UserCommands/HelpCommandTest.php
+3
-3
ConversationTest.php
tests/TelegramBot/Tests/ConversationTest.php
+1
-2
ChatTest.php
tests/TelegramBot/Tests/Entities/ChatTest.php
+1
-4
InlineKeyboardButtonTest.php
...s/TelegramBot/Tests/Entities/InlineKeyboardButtonTest.php
+1
-2
MessageTest.php
tests/TelegramBot/Tests/Entities/MessageTest.php
+1
-3
ReplyToMessageTest.php
tests/TelegramBot/Tests/Entities/ReplyToMessageTest.php
+1
-2
ServerResponseTest.php
tests/TelegramBot/Tests/Entities/ServerResponseTest.php
+1
-2
UpdateTest.php
tests/TelegramBot/Tests/Entities/UpdateTest.php
+1
-1
TelegramLogTest.php
tests/TelegramBot/Tests/TelegramLogTest.php
+1
-3
TelegramTest.php
tests/TelegramBot/Tests/TelegramTest.php
+1
-1
TestCase.php
tests/TelegramBot/Tests/TestCase.php
+1
-1
TestHelpers.php
tests/TelegramBot/Tests/TestHelpers.php
+1
-1
No files found.
composer.json
View file @
27f55ca6
...
...
@@ -31,7 +31,7 @@
},
"autoload-dev"
:
{
"psr-4"
:
{
"
Tests
\\
"
:
"tests/
"
"
Longman
\\
TelegramBot
\\
Tests
\\
"
:
"tests/TelegramBot/Tests
"
}
},
"require-dev"
:
{
...
...
composer.lock
View file @
27f55ca6
This diff is collapsed.
Click to expand it.
tests/Bootstrap.php
View file @
27f55ca6
...
...
@@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests
;
namespace
Longman\TelegramBot\
Tests
;
/*
* Set error reporting to the max level.
...
...
tests/
Unit
/Commands/CommandTest.php
→
tests/
TelegramBot/Tests
/Commands/CommandTest.php
View file @
27f55ca6
...
...
@@ -8,10 +8,10 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
\Commands
;
namespace
Longman\TelegramBot\Tests
\Commands
;
use
Tests\Unit
\TestCase
;
use
Tests\TestHelpers
;
use
Longman\TelegramBot\Tests
\TestCase
;
use
Longman\TelegramBot\
Tests\TestHelpers
;
use
Longman\TelegramBot\Telegram
;
/**
...
...
tests/
Unit
/Commands/CommandTestCase.php
→
tests/
TelegramBot/Tests
/Commands/CommandTestCase.php
View file @
27f55ca6
...
...
@@ -8,9 +8,9 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
\Commands
;
namespace
Longman\TelegramBot\Tests
\Commands
;
use
Tests\Unit
\TestCase
;
use
Longman\TelegramBot\Tests
\TestCase
;
use
Longman\TelegramBot\Telegram
;
/**
...
...
tests/
Unit
/Commands/UserCommands/EchoCommandTest.php
→
tests/
TelegramBot/Tests
/Commands/UserCommands/EchoCommandTest.php
View file @
27f55ca6
...
...
@@ -8,11 +8,10 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
\Commands\UserCommands
;
namespace
Longman\TelegramBot\Tests
\Commands\UserCommands
;
use
Tests\Unit\Commands\CommandTestCase
;
use
Tests\TestHelpers
;
use
Longman\TelegramBot\Telegram
;
use
Longman\TelegramBot\Tests\Commands\CommandTestCase
;
use
Longman\TelegramBot\Tests\TestHelpers
;
use
Longman\TelegramBot\Commands\UserCommands\EchoCommand
;
/**
...
...
tests/
Unit
/Commands/UserCommands/HelpCommandTest.php
→
tests/
TelegramBot/Tests
/Commands/UserCommands/HelpCommandTest.php
View file @
27f55ca6
...
...
@@ -8,10 +8,10 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
\Commands\UserCommands
;
namespace
Longman\TelegramBot\Tests
\Commands\UserCommands
;
use
Tests\Unit
\Commands\CommandTestCase
;
use
Tests\TestHelpers
;
use
Longman\TelegramBot\Tests
\Commands\CommandTestCase
;
use
Longman\TelegramBot\
Tests\TestHelpers
;
use
Longman\TelegramBot\Commands\UserCommands\HelpCommand
;
/**
...
...
tests/
Unit
/ConversationTest.php
→
tests/
TelegramBot/Tests
/ConversationTest.php
View file @
27f55ca6
...
...
@@ -8,9 +8,8 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
Tests\TestHelpers
;
use
Longman\TelegramBot\Conversation
;
use
Longman\TelegramBot\Telegram
;
...
...
tests/
Unit
/Entities/ChatTest.php
→
tests/
TelegramBot/Tests
/Entities/ChatTest.php
View file @
27f55ca6
...
...
@@ -8,10 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
use
Longman\TelegramBot\Entities\Chat
;
use
Tests\TestHelpers
;
namespace
Longman\TelegramBot\Tests
;
/**
* @package TelegramTest
...
...
tests/
Unit
/Entities/InlineKeyboardButtonTest.php
→
tests/
TelegramBot/Tests
/Entities/InlineKeyboardButtonTest.php
View file @
27f55ca6
...
...
@@ -8,10 +8,9 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
Longman\TelegramBot\Entities\InlineKeyboardButton
;
use
Longman\TelegramBot\Exception\TelegramException
;
/**
* @package TelegramTest
...
...
tests/
Unit
/Entities/MessageTest.php
→
tests/
TelegramBot/Tests
/Entities/MessageTest.php
View file @
27f55ca6
...
...
@@ -8,9 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
use
Tests\TestHelpers
;
namespace
Longman\TelegramBot\Tests
;
/**
* @package TelegramTest
...
...
tests/
Unit
/Entities/ReplyToMessageTest.php
→
tests/
TelegramBot/Tests
/Entities/ReplyToMessageTest.php
View file @
27f55ca6
...
...
@@ -8,10 +8,9 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
\Longman\TelegramBot\Entities\Update
;
use
\Longman\TelegramBot\Entities\ReplyToMessage
;
/**
* @package TelegramTest
...
...
tests/
Unit
/Entities/ServerResponseTest.php
→
tests/
TelegramBot/Tests
/Entities/ServerResponseTest.php
View file @
27f55ca6
...
...
@@ -10,10 +10,9 @@
* Written by Marco Boretto
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
\Longman\TelegramBot\Entities\ServerResponse
;
use
\Longman\TelegramBot\Entities\Message
;
use
\Longman\TelegramBot\Request
;
/**
...
...
tests/
Unit
/Entities/UpdateTest.php
→
tests/
TelegramBot/Tests
/Entities/UpdateTest.php
View file @
27f55ca6
...
...
@@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
\Longman\TelegramBot\Entities\Update
;
...
...
tests/
Unit
/TelegramLogTest.php
→
tests/
TelegramBot/Tests
/TelegramLogTest.php
View file @
27f55ca6
...
...
@@ -8,13 +8,11 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
Longman\TelegramBot\Exception\TelegramLogException
;
use
Longman\TelegramBot\TelegramLog
;
use
Monolog\Handler\StreamHandler
;
use
Monolog\Logger
;
use
Tests\TestHelpers
;
/**
* @package TelegramTest
...
...
tests/
Unit
/TelegramTest.php
→
tests/
TelegramBot/Tests
/TelegramTest.php
View file @
27f55ca6
...
...
@@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
use
Longman\TelegramBot\Telegram
;
...
...
tests/
Unit
/TestCase.php
→
tests/
TelegramBot/Tests
/TestCase.php
View file @
27f55ca6
...
...
@@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests\Unit
;
namespace
Longman\TelegramBot\Tests
;
class
TestCase
extends
\PHPUnit_Framework_TestCase
{
...
...
tests/TestHelpers.php
→
tests/Te
legramBot/Tests/Te
stHelpers.php
View file @
27f55ca6
...
...
@@ -8,7 +8,7 @@
* file that was distributed with this source code.
*/
namespace
Tests
;
namespace
Longman\TelegramBot\
Tests
;
use
Longman\TelegramBot\DB
;
use
Longman\TelegramBot\Entities\Chat
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment