@@ -21,29 +21,16 @@ use \Longman\TelegramBot\Entities\Update;
...
@@ -21,29 +21,16 @@ use \Longman\TelegramBot\Entities\Update;
*/
*/
classReplyToMessageTestextendsTestCase
classReplyToMessageTestextendsTestCase
{
{
/**
* @var \Longman\TelegramBot\Entities\Message
*/
private$reply_to_message;
/**
* @var \Longman\TelegramBot\Entities\Message
*/
private$message;
publicfunctiontestChatType()
publicfunctiontestChatType()
{
{
$json='
$json='
{"update_id":137809335,
{"update_id":137809335,
"message":{"message_id":4479,"from":{"id":123,"first_name":"John","username":"MJohn"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092987,"reply_to_message":{"message_id":11,"from":{"id":121,"first_name":"Myname","username":"mybot"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092984,"text":"type some text"},"text":"some text"}}
"message":{"message_id":4479,"from":{"id":123,"first_name":"John","username":"MJohn"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092987,"reply_to_message":{"message_id":11,"from":{"id":121,"first_name":"Myname","username":"mybot"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092984,"text":"type some text"},"text":"some text"}}
@@ -23,7 +23,7 @@ class UpdateTest extends TestCase
...
@@ -23,7 +23,7 @@ class UpdateTest extends TestCase
{
{
publicfunctiontestUpdateCast()
publicfunctiontestUpdateCast()
{
{
$json='
$json='
{"update_id":137809336,
{"update_id":137809336,
"message":{"message_id":4479,"from":{"id":123,"first_name":"John","username":"MJohn"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092987,"reply_to_message":{"message_id":11,"from":{"id":121,"first_name":"Myname","username":"mybot"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092984,"text":"type some text"},"text":"some text"}}
"message":{"message_id":4479,"from":{"id":123,"first_name":"John","username":"MJohn"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092987,"reply_to_message":{"message_id":11,"from":{"id":121,"first_name":"Myname","username":"mybot"},"chat":{"id":-123,"title":"MyChat","type":"group"},"date":1449092984,"text":"type some text"},"text":"some text"}}
';
';
...
@@ -31,6 +31,6 @@ class UpdateTest extends TestCase
...
@@ -31,6 +31,6 @@ class UpdateTest extends TestCase