1
0

HEICTest.php 705 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace Test\Preview;
  7. /**
  8. * Class BitmapTest
  9. *
  10. * @group DB
  11. *
  12. * @package Test\Preview
  13. */
  14. class HEICTest extends Provider {
  15. protected function setUp(): void {
  16. if (!in_array('HEIC', \Imagick::queryFormats('HEI*'))) {
  17. $this->markTestSkipped('ImageMagick is not HEIC aware. Skipping tests');
  18. } else {
  19. parent::setUp();
  20. $fileName = 'testimage.heic';
  21. $this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
  22. $this->width = 1680;
  23. $this->height = 1050;
  24. $this->provider = new \OC\Preview\HEIC;
  25. }
  26. }
  27. }