mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
36 lines
757 B
PHP
36 lines
757 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 Tests\PHPUnit\phpOMS\Utils\Barcode;
|
|
|
|
require_once __DIR__ . '/../../../../../phpOMS/Autoloader.php';
|
|
|
|
use phpOMS\Utils\Barcode\Codebar;
|
|
|
|
class CodebarTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function testImage()
|
|
{
|
|
$path = __DIR__ . '/codebar.png';
|
|
if (file_exists($path)) {
|
|
unlink($path);
|
|
}
|
|
|
|
$img = new Codebar('412163', 200, 50);
|
|
$img->saveToPngFile($path);
|
|
|
|
self::assertTrue(file_exists($path));
|
|
}
|
|
}
|