phpOMS/tests/Utils/Barcode/C128bTest.php
2018-01-15 18:08:05 +01:00

35 lines
687 B
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
namespace phpOMS\tests\Utils\Barcode;
use phpOMS\Utils\Barcode\C128b;
class C128bTest extends \PHPUnit\Framework\TestCase
{
public function testImage()
{
$path = __DIR__ . '/c128b.png';
if (file_exists($path)) {
unlink($path);
}
$img = new C128b('ABcdeFG0123+-!@?', 200, 50);
$img->saveToPngFile($path);
self::assertTrue(file_exists($path));
}
}