Skip to content

Commit

Permalink
Allow imagick to fail on PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Oct 16, 2020
1 parent 2a5bf7d commit 0e9aab4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ cache:
- $HOME/.composer/cache

install:
- yes '' | pecl install imagick
- |
if [[ "$TRAVIS_PHP_VERSION" == 'nightly' ]]; then
travis_retry composer update --ignore-platform-reqs --no-interaction --prefer-dist
else
yes '' | pecl install imagick
travis_retry composer update --no-interaction --prefer-dist
fi
Expand Down
5 changes: 5 additions & 0 deletions tests/Google2FATest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ public function testQrcodeServiceMissing()

public function testQrcodeInlineBacon()
{
if (!extension_loaded('imagick'))
{
return;
}

$this->google2fa->setQrcodeService(new Bacon());

$this->assertEquals(
Expand Down

0 comments on commit 0e9aab4

Please sign in to comment.