mirror of
https://github.com/danog/telegram-entities.git
synced 2024-11-30 04:39:06 +01:00
fix test?
This commit is contained in:
parent
05577e5f2e
commit
709d74e299
@ -139,7 +139,7 @@ class EntitiesTest extends TestCase
|
||||
$this->assertEquals($html, $result->message);
|
||||
$this->assertNoRelevantEntities($result->entities);
|
||||
|
||||
$result = self::render(message: "```\n".EntityTools::markdownCodeblockEscape($html)."\n```", parse_mode: $mode);
|
||||
$result = self::render(message: "```\n".EntityTools::markdownCodeEscape($html)."\n```", parse_mode: $mode);
|
||||
$this->assertEquals($html, \rtrim($result->message));
|
||||
$this->assertEquals([['offset' => 0, 'length' => EntityTools::mbStrlen($html), 'language' => '', 'type' => 'pre']], $result->entities);
|
||||
}
|
||||
@ -428,7 +428,7 @@ class EntitiesTest extends TestCase
|
||||
],
|
||||
[
|
||||
'markdown',
|
||||
"```\na_b\n".EntityTools::markdownCodeblockEscape('\\ ```').'```',
|
||||
"```\na_b\n".EntityTools::markdownCodeEscape('\\ ```').'```',
|
||||
"a_b\n\\ ```",
|
||||
[
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user