Files
lis/vendor/picqer/php-barcode-generator/tests/PharmacodeTest.php
2025-01-27 08:16:55 +07:00

16 lines
368 B
PHP

<?php
use PHPUnit\Framework\TestCase;
class PharmacodeTest extends TestCase
{
public function test_validation_triggerd_when_generating_zero_code()
{
$pharmacode = new Picqer\Barcode\Types\TypePharmacodeTwoCode();
$this->expectException(Picqer\Barcode\Exceptions\InvalidLengthException::class);
$pharmacode->getBarcode('0');
}
}