mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-18 14:00:43 +00:00
🚒
This commit is contained in:
@@ -25,7 +25,7 @@ jobs:
|
||||
- name: "Install PHP"
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "7.2"
|
||||
php-version: "7.4"
|
||||
coverage: none
|
||||
tools: pecl
|
||||
extensions: ast, gd, imagick, json, mbstring
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
# - windows-latest
|
||||
php-version:
|
||||
- "7.2"
|
||||
- "7.3"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user