From 40e8a6ecbc3089d6324f3a7a2489e5cf371ba8ea Mon Sep 17 00:00:00 2001 From: smiley Date: Wed, 5 Oct 2022 20:15:44 +0200 Subject: [PATCH] :shower: --- tests/Data/ByteTest.php | 1 + tests/Data/DataInterfaceTestAbstract.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Data/ByteTest.php b/tests/Data/ByteTest.php index 3fe507856..66f5ed008 100644 --- a/tests/Data/ByteTest.php +++ b/tests/Data/ByteTest.php @@ -36,6 +36,7 @@ final class ByteTest extends DataInterfaceTestAbstract{ * @inheritDoc */ public function testInvalidDataException():void{ + /** @noinspection PhpUnitTestFailedLineInspection */ $this::markTestSkipped('N/A (binary mode)'); } diff --git a/tests/Data/DataInterfaceTestAbstract.php b/tests/Data/DataInterfaceTestAbstract.php index 99515229b..5437908dc 100644 --- a/tests/Data/DataInterfaceTestAbstract.php +++ b/tests/Data/DataInterfaceTestAbstract.php @@ -128,7 +128,8 @@ abstract class DataInterfaceTestAbstract extends TestCase{ $this->expectException(QRCodeDataException::class); $this->expectExceptionMessage('invalid data'); - $this->QRData->setData([new $this->FQN('##')]); + /** @phan-suppress-next-line PhanNoopNew */ + new $this->FQN('##'); } /** @@ -138,7 +139,8 @@ abstract class DataInterfaceTestAbstract extends TestCase{ $this->expectException(QRCodeDataException::class); $this->expectExceptionMessage('invalid data'); - $this->QRData->setData([new $this->FQN('')]); + /** @phan-suppress-next-line PhanNoopNew */ + new $this->FQN(''); } }