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
84f9ffc5
Unverified
Commit
84f9ffc5
authored
Apr 22, 2018
by
Avtandil Kikabidze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing tests
parent
e09613bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Telegram.php
src/Telegram.php
+1
-1
ResponseTest.php
tests/unit/Entities/ResponseTest.php
+3
-3
No files found.
src/Telegram.php
View file @
84f9ffc5
...
...
@@ -323,7 +323,7 @@ class Telegram
}
}
throw
new
TelegramException
(
'Command '
.
$command
.
' does not found'
)
;
return
null
;
}
/**
...
...
tests/unit/Entities/
Server
ResponseTest.php
→
tests/unit/Entities/ResponseTest.php
View file @
84f9ffc5
...
...
@@ -23,7 +23,7 @@ use Longman\TelegramBot\Http\Client;
* @license http://opensource.org/licenses/mit-license.php The MIT License (MIT)
* @link https://github.com/php-telegram-bot/core
*/
class
Server
ResponseTest
extends
TestCase
class
ResponseTest
extends
TestCase
{
public
function
sendMessageOk
()
{
...
...
@@ -95,7 +95,7 @@ class ServerResponseTest extends TestCase
$server
=
new
Response
(
json_decode
(
$result
,
true
),
'testbot'
);
self
::
assertTrue
(
$server
->
isOk
());
self
::
assert
True
(
$server
->
getResult
());
self
::
assert
Equals
([],
$server
->
getResult
());
self
::
assertNull
(
$server
->
getErrorCode
());
self
::
assertEquals
(
'Webhook was set'
,
$server
->
getDescription
());
}
...
...
@@ -264,7 +264,7 @@ class ServerResponseTest extends TestCase
$server
=
new
Response
(
$fake_response
,
'testbot'
);
self
::
assertTrue
(
$server
->
isOk
());
self
::
assert
True
(
$server
->
getResult
());
self
::
assert
Equals
([],
$server
->
getResult
());
self
::
assertNull
(
$server
->
getErrorCode
());
self
::
assertEquals
(
''
,
$server
->
getDescription
());
...
...
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