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 13a9f51 commit 2ed10d4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
run: |
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
composer update --prefer-lowest --prefer-stable
elif [[ ${{ matrix.php-version }} == '8.0' ]]; then
composer remove --dev mpdf/mpdf
composer install
else
composer install
fi
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.6",
"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 2ed10d4

Please sign in to comment.