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(''); } }