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
d01a1a91
Commit
d01a1a91
authored
Jan 04, 2016
by
JOSUNGIL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed wrong function name.
parent
56bf8fc8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Request.php
src/Request.php
+2
-2
ServerResponseTest.php
tests/Unit/Entities/ServerResponseTest.php
+2
-2
No files found.
src/Request.php
View file @
d01a1a91
...
...
@@ -81,7 +81,7 @@ class Request
return
$status
;
}
public
static
function
generateGeneralFakeServer
S
esponse
(
$data
=
null
)
public
static
function
generateGeneralFakeServer
R
esponse
(
$data
=
null
)
{
//PARAM BINDED IN PHPUNIT TEST FOR TestServerResponse.php
//Maybe this is not the best possible implementation
...
...
@@ -231,7 +231,7 @@ class Request
}
if
(
defined
(
'PHPUNIT_TESTSUITE'
))
{
$fake_response
=
self
::
generateGeneralFakeServer
S
esponse
(
$data
);
$fake_response
=
self
::
generateGeneralFakeServer
R
esponse
(
$data
);
return
new
ServerResponse
(
$fake_response
,
self
::
$telegram
->
getBotName
());
}
...
...
tests/Unit/Entities/ServerResponseTest.php
View file @
d01a1a91
...
...
@@ -308,7 +308,7 @@ class ServerResponseTest extends TestCase
public
function
testSetGeneralTestFakeResponse
()
{
//setWebhook ok
$fake_response
=
Request
::
generateGeneralFakeServer
S
esponse
();
$fake_response
=
Request
::
generateGeneralFakeServer
R
esponse
();
$this
->
server
=
new
ServerResponse
(
$fake_response
,
'testbot'
);
...
...
@@ -319,7 +319,7 @@ class ServerResponseTest extends TestCase
//sendMessage ok
$fake_response
=
Request
::
generateGeneralFakeServer
S
esponse
([
'chat_id'
=>
123456789
,
'text'
=>
'hello'
]);
$fake_response
=
Request
::
generateGeneralFakeServer
R
esponse
([
'chat_id'
=>
123456789
,
'text'
=>
'hello'
]);
$this
->
server
=
new
ServerResponse
(
$fake_response
,
'testbot'
);
...
...
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