From 91299e9b682a4c971679c78e5ce00988a3a8557e Mon Sep 17 00:00:00 2001 From: Jaapio Date: Fri, 12 Apr 2024 16:57:11 +0200 Subject: [PATCH] [FIX] catch transport exception when host can not be reached --- tests/unit/Parser/Productions/RuleTestCase.php | 2 +- tests/unit/Parser/Productions/SectionRuleTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/Parser/Productions/RuleTestCase.php b/tests/unit/Parser/Productions/RuleTestCase.php index 26ce1fc..1b2a2e1 100644 --- a/tests/unit/Parser/Productions/RuleTestCase.php +++ b/tests/unit/Parser/Productions/RuleTestCase.php @@ -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); diff --git a/tests/unit/Parser/Productions/SectionRuleTest.php b/tests/unit/Parser/Productions/SectionRuleTest.php index db58310..fa53738 100644 --- a/tests/unit/Parser/Productions/SectionRuleTest.php +++ b/tests/unit/Parser/Productions/SectionRuleTest.php @@ -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;