From a0052024dc97363b0f3acb843fb169968eb9232c Mon Sep 17 00:00:00 2001 From: HorstOeko Date: Mon, 9 Oct 2023 05:39:34 +0200 Subject: [PATCH] Fix Mock Tests (PDFBuilder) --- tests/testcases/PdfBuilderEn16931Test.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/testcases/PdfBuilderEn16931Test.php b/tests/testcases/PdfBuilderEn16931Test.php index 8994270c..38bd90ac 100644 --- a/tests/testcases/PdfBuilderEn16931Test.php +++ b/tests/testcases/PdfBuilderEn16931Test.php @@ -140,17 +140,15 @@ public function testGetXmlContent(): void ->getMock(); /** - * @var \PHPUnit\Framework\MockObject\MockObject + * @var \PHPUnit\Framework\MockObject\MockObject $mockedObject */ - $mockedObject = $mockedObject; $mockedObject->expects($this->exactly(2)) ->method("getXmlContent") ->willReturn(self::$document->getContent()); /** - * @var \horstoeko\zugferd\ZugferdDocumentPdfBuilder + * @var \horstoeko\zugferd\ZugferdDocumentPdfBuilder $mockedObject */ - $mockedObject = $mockedObject; $result = $mockedObject->generateDocument(); $this->assertInstanceOf(ZugferdDocumentPdfBuilder::class, $result); @@ -171,17 +169,15 @@ public function testGetXmlAttachmentFilename(): void ->getMock(); /** - * @var \PHPUnit\Framework\MockObject\MockObject + * @var \PHPUnit\Framework\MockObject\MockObject $mockedObject */ - $mockedObject = $mockedObject; $mockedObject->expects($this->exactly(2)) ->method("getXmlAttachmentFilename") ->willReturn(self::$document->getProfileDefinition()['attachmentfilename']); /** - * @var \horstoeko\zugferd\ZugferdDocumentPdfBuilder + * @var \horstoeko\zugferd\ZugferdDocumentPdfBuilder $mockedObject */ - $mockedObject = $mockedObject; $result = $mockedObject->generateDocument(); $this->assertInstanceOf(ZugferdDocumentPdfBuilder::class, $result); @@ -202,17 +198,15 @@ public function testGetXmlAttachmentXmpName(): void ->getMock(); /** - * @var \PHPUnit\Framework\MockObject\MockObject + * @var \PHPUnit\Framework\MockObject\MockObject $mockedObject */ - $mockedObject = $mockedObject; $mockedObject->expects($this->exactly(1)) ->method("getXmlAttachmentXmpName") ->willReturn(self::$document->getProfileDefinition()["xmpname"]); /** - * @var \horstoeko\zugferd\ZugferdDocumentPdfBuilder + * @var \horstoeko\zugferd\ZugferdDocumentPdfBuilder $mockedObject */ - $mockedObject = $mockedObject; $result = $mockedObject->generateDocument(); $this->assertInstanceOf(ZugferdDocumentPdfBuilder::class, $result);