summaryrefslogtreecommitdiff
path: root/vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-15 18:33:35 +0300
committerAndrew Dolgov <[email protected]>2021-11-15 18:33:35 +0300
commit4c37fa4b41b0cab50a4fc192e9120042dbe36872 (patch)
treed7ca7cbd65de0cea9806870c8fb646ed15d978ae /vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php
parent109b702ed0cd31a0dc8466b8127882d263705d8d (diff)
update phpstan to 1.1.2; update php-qrcode to 3.4.1
Diffstat (limited to 'vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php')
-rw-r--r--vendor/chillerlan/php-qrcode/tests/Output/QRImageTest.php10
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);
+ }
}
}