Skip to content

Commit

Permalink
[FIX] catch transport exception when host can not be reached
Browse files Browse the repository at this point in the history
  • Loading branch information
jaapio committed Apr 12, 2024
1 parent d595ad5 commit 91299e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/Parser/Productions/RuleTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function givenInlineMarkupRule(): InlineMarkupRule
$inlineTokenParser->method('parse')->willReturnCallback(
static fn (string $arg): InlineCompoundNode => new InlineCompoundNode([
new PlainTextInlineNode($arg),
])
]),
);

return new InlineMarkupRule($inlineTokenParser);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Parser/Productions/SectionRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private function getInlineTokenParserMock(): InlineParser
{
$inlineTokenParser = $this->createMock(InlineParser::class);
$inlineTokenParser->method('parse')->willReturnCallback(
static fn (string $arg): InlineCompoundNode => InlineCompoundNode::getPlainTextInlineNode($arg)
static fn (string $arg): InlineCompoundNode => InlineCompoundNode::getPlainTextInlineNode($arg),
);

return $inlineTokenParser;
Expand Down

0 comments on commit 91299e9

Please sign in to comment.