Feature: Labelprint für Kistenetiketten hinzugefügt

This commit is contained in:
2025-10-27 12:14:44 +01:00
parent 43bc416554
commit 14bae6c9ef
1068 changed files with 229014 additions and 1807 deletions

View File

@@ -0,0 +1,55 @@
<?php
/**
* UnitTest.php
*
* @since 2011-05-23
* @category Library
* @package PdfPage
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2011-2024 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://github.com/tecnickcom/tc-lib-pdf-page
*
* This file is part of tc-lib-pdf-page software library.
*/
namespace Test;
/**
* Unit Test
*
* @since 2011-05-23
* @category Library
* @package PdfPage
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2011-2024 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://github.com/tecnickcom/tc-lib-pdf-page
*/
class UnitTest extends TestUtil
{
protected function getTestObject(): \Com\Tecnick\Pdf\Page\Page
{
$pdf = new \Com\Tecnick\Color\Pdf();
$encrypt = new \Com\Tecnick\Pdf\Encrypt\Encrypt(false);
return new \Com\Tecnick\Pdf\Page\Page('mm', $pdf, $encrypt, false, false);
}
public function testGetPageSize(): void
{
$page = $this->getTestObject();
$val = $page->convertPoints(72, 'in', 3);
$this->assertEquals(1, $val);
$val = $page->convertPoints(72, 'mm', 3);
$this->assertEquals(25.4, $val);
}
public function testGetPageSizeEx(): void
{
$this->bcExpectException('\\' . \Com\Tecnick\Pdf\Page\Exception::class);
$page = $this->getTestObject();
$page->convertPoints(1, '*ERROR*', 2);
}
}