Files
alrahma_sunday_school/vendor/mike42/escpos-php/test/unit/EscposImageTest.php
T
2026-02-10 22:11:06 -05:00

16 lines
462 B
PHP

<?php
use Mike42\Escpos\EscposImage;
class EscposImageTest extends PHPUnit\Framework\TestCase
{
public function testImageMissingException()
{
$this -> expectException(Exception::class);
$img = EscposImage::load('not-a-real-file.png');
}
public function testImageNotSupportedException()
{
$this -> expectException(InvalidArgumentException::class);
$img = EscposImage::load('/dev/null', false, array());
}
}