Skip to content

Commit

Permalink
PHP 8 version of Mpdf is not available yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 24, 2020
1 parent 41797df commit 1e1146c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- name: Composer install
run: |
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
composer remove mpdf/mpdf
composer update --prefer-lowest --prefer-stable
else
composer install
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"cakephp/cakephp": "^4.0"
},
"require-dev": {
"phpunit/phpunit": "~8.5.0",
"phpunit/phpunit": "~8.5.0 || ^9.3",
"dompdf/dompdf": "^0.8",
"mpdf/mpdf": "^8.0.4",
"tecnickcom/tcpdf": "^6.3"
Expand Down
9 changes: 9 additions & 0 deletions tests/TestCase/Pdf/Engine/MpdfEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
*/
class MpdfEngineTest extends TestCase
{
public function setUp(): void
{
parent::setUp();

if (!class_exists(Mpdf::class)) {
$this->markTestSkipped('Mpdf is not loaded');
}
}

/**
* Tests that the engine sets the options properly.
*/
Expand Down

0 comments on commit 1e1146c

Please sign in to comment.