diff options
author | Andrew Dolgov <[email protected]> | 2021-11-18 07:32:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-18 07:32:28 +0300 |
commit | 63ec5a89657bb7f9650582b96e0bb255a0889b48 (patch) | |
tree | 074b61eedd7304ba1d8d7deec01d26973ef8e6b8 /vendor/chillerlan/php-qrcode/tests | |
parent | 3a3fde1a2e0beac6d179c6449eaad726100710d7 (diff) | |
parent | 2d830c6281c19a7ee29cd379f5aedc82deef3775 (diff) |
Merge branch 'wip-phpstan-level6'
Diffstat (limited to 'vendor/chillerlan/php-qrcode/tests')
-rw-r--r-- | vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php b/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php index 34ecf4f91..c4466a658 100644 --- a/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php +++ b/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php @@ -13,6 +13,7 @@ namespace chillerlan\QRCodeTest\Output; use chillerlan\QRCode\{QRCode, Output\QRImage}; +use const PHP_MAJOR_VERSION; class QRImageTest extends QROutputTestAbstract{ @@ -63,7 +64,14 @@ class QRImageTest extends QROutputTestAbstract{ $this->setOutputInterface(); - $this::assertIsResource($this->outputInterface->dump()); + $data = $this->outputInterface->dump(); + + if(PHP_MAJOR_VERSION >= 8){ + $this::assertInstanceOf('\\GdImage', $data); + } + else{ + $this::assertIsResource($data); + } } } |