QRImagickTest.php 743 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Class QRImagickTest
  4. *
  5. * @filesource QRImagickTest.php
  6. * @created 04.07.2018
  7. * @package chillerlan\QRCodeTest\Output
  8. * @author smiley <smiley@chillerlan.net>
  9. * @copyright 2018 smiley
  10. * @license MIT
  11. */
  12. namespace chillerlan\QRCodeTest\Output;
  13. use chillerlan\QRCode\{QRCode, Output\QRImagick};
  14. class QRImagickTest extends QROutputTestAbstract{
  15. protected $FQCN = QRImagick::class;
  16. public function testImageOutput(){
  17. $type = QRCode::OUTPUT_IMAGICK;
  18. $this->options->outputType = $type;
  19. $this->setOutputInterface();
  20. $this->outputInterface->dump($this::cachefile.$type);
  21. $img = $this->outputInterface->dump();
  22. $this->assertSame($img, file_get_contents($this::cachefile.$type));
  23. }
  24. }