Commit d01a1a91 authored by JOSUNGIL's avatar JOSUNGIL

Fixed wrong function name.

parent 56bf8fc8
......@@ -81,7 +81,7 @@ class Request
return $status;
}
public static function generateGeneralFakeServerSesponse($data = null)
public static function generateGeneralFakeServerResponse($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::generateGeneralFakeServerSesponse($data);
$fake_response = self::generateGeneralFakeServerResponse($data);
return new ServerResponse($fake_response, self::$telegram->getBotName());
}
......
......@@ -308,7 +308,7 @@ class ServerResponseTest extends TestCase
public function testSetGeneralTestFakeResponse() {
//setWebhook ok
$fake_response = Request::generateGeneralFakeServerSesponse();
$fake_response = Request::generateGeneralFakeServerResponse();
$this->server = new ServerResponse($fake_response, 'testbot');
......@@ -319,7 +319,7 @@ class ServerResponseTest extends TestCase
//sendMessage ok
$fake_response = Request::generateGeneralFakeServerSesponse(['chat_id' => 123456789, 'text' => 'hello']);
$fake_response = Request::generateGeneralFakeServerResponse(['chat_id' => 123456789, 'text' => 'hello']);
$this->server = new ServerResponse($fake_response, 'testbot');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment