EscposImageTest.php 462B

12345678910111213141516
  1. <?php
  2. use Mike42\Escpos\EscposImage;
  3. class EscposImageTest extends PHPUnit\Framework\TestCase
  4. {
  5. public function testImageMissingException()
  6. {
  7. $this -> expectException(Exception::class);
  8. $img = EscposImage::load('not-a-real-file.png');
  9. }
  10. public function testImageNotSupportedException()
  11. {
  12. $this -> expectException(InvalidArgumentException::class);
  13. $img = EscposImage::load('/dev/null', false, array());
  14. }
  15. }