Feature: Labelprint für Kistenetiketten hinzugefügt
This commit is contained in:
48
vendor/tecnickcom/tc-lib-unicode-data/test/ArabicTest.php
vendored
Normal file
48
vendor/tecnickcom/tc-lib-unicode-data/test/ArabicTest.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ArabicTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Arabic Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class ArabicTest extends TestCase
|
||||
{
|
||||
public function testDiacritic(): void
|
||||
{
|
||||
$this->assertEquals(5, count(\Com\Tecnick\Unicode\Data\Arabic::DIACRITIC));
|
||||
}
|
||||
|
||||
public function testlaa(): void
|
||||
{
|
||||
$this->assertEquals(4, count(\Com\Tecnick\Unicode\Data\Arabic::LAA));
|
||||
}
|
||||
|
||||
public function testSubstitute(): void
|
||||
{
|
||||
$this->assertEquals(76, count(\Com\Tecnick\Unicode\Data\Arabic::SUBSTITUTE));
|
||||
}
|
||||
}
|
||||
41
vendor/tecnickcom/tc-lib-unicode-data/test/BracketTest.php
vendored
Normal file
41
vendor/tecnickcom/tc-lib-unicode-data/test/BracketTest.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* BracketTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Bracket Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class BracketTest extends TestCase
|
||||
{
|
||||
public function testOpenClose(): void
|
||||
{
|
||||
$this->assertEquals(
|
||||
\Com\Tecnick\Unicode\Data\Bracket::OPEN,
|
||||
array_flip(\Com\Tecnick\Unicode\Data\Bracket::CLOSE)
|
||||
);
|
||||
}
|
||||
}
|
||||
39
vendor/tecnickcom/tc-lib-unicode-data/test/ConstantTest.php
vendored
Normal file
39
vendor/tecnickcom/tc-lib-unicode-data/test/ConstantTest.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ConstantTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Constant Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class ConstantTest extends TestCase
|
||||
{
|
||||
public function testConstants(): void
|
||||
{
|
||||
$reflectionClass = new \ReflectionClass('\\' . \Com\Tecnick\Unicode\Data\Constant::class);
|
||||
$this->assertEquals(14, count($reflectionClass->getConstants()));
|
||||
}
|
||||
}
|
||||
39
vendor/tecnickcom/tc-lib-unicode-data/test/EncodingTest.php
vendored
Normal file
39
vendor/tecnickcom/tc-lib-unicode-data/test/EncodingTest.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* EncodingTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Encoding Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class EncodingTest extends TestCase
|
||||
{
|
||||
public function testMap(): void
|
||||
{
|
||||
$this->assertEquals(22, count(\Com\Tecnick\Unicode\Data\Encoding::MAP));
|
||||
$this->assertEquals(256, count(\Com\Tecnick\Unicode\Data\Encoding::MAP['iso-8859-1']));
|
||||
}
|
||||
}
|
||||
38
vendor/tecnickcom/tc-lib-unicode-data/test/IdentityTest.php
vendored
Normal file
38
vendor/tecnickcom/tc-lib-unicode-data/test/IdentityTest.php
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* IdentityTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Identity Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class IdentityTest extends TestCase
|
||||
{
|
||||
public function testConstants(): void
|
||||
{
|
||||
$this->assertEquals('a3f30375025e8570745ff463479522b6', md5(\Com\Tecnick\Unicode\Data\Identity::CIDHMAP));
|
||||
}
|
||||
}
|
||||
38
vendor/tecnickcom/tc-lib-unicode-data/test/LatinTest.php
vendored
Normal file
38
vendor/tecnickcom/tc-lib-unicode-data/test/LatinTest.php
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* LatinTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Latin Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class LatinTest extends TestCase
|
||||
{
|
||||
public function testMap(): void
|
||||
{
|
||||
$this->assertEquals(27, count(\Com\Tecnick\Unicode\Data\Latin::SUBSTITUTE));
|
||||
}
|
||||
}
|
||||
38
vendor/tecnickcom/tc-lib-unicode-data/test/MirrorTest.php
vendored
Normal file
38
vendor/tecnickcom/tc-lib-unicode-data/test/MirrorTest.php
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* MirrorTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Mirror Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class MirrorTest extends TestCase
|
||||
{
|
||||
public function testMap(): void
|
||||
{
|
||||
$this->assertEquals(352, count(\Com\Tecnick\Unicode\Data\Mirror::UNI));
|
||||
}
|
||||
}
|
||||
56
vendor/tecnickcom/tc-lib-unicode-data/test/PatternTest.php
vendored
Normal file
56
vendor/tecnickcom/tc-lib-unicode-data/test/PatternTest.php
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PatternTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Pattern Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class PatternTest extends TestCase
|
||||
{
|
||||
public function testPatterns(): void
|
||||
{
|
||||
$str = 'hello world';
|
||||
$this->assertEquals(0, preg_match(\Com\Tecnick\Unicode\Data\Pattern::ARABIC, $str));
|
||||
$this->assertEquals(0, preg_match(\Com\Tecnick\Unicode\Data\Pattern::RTL, $str));
|
||||
|
||||
$str = 'مرحبا بالعالم';
|
||||
$this->assertEquals(1, preg_match(\Com\Tecnick\Unicode\Data\Pattern::ARABIC, $str));
|
||||
|
||||
$str = 'שלום עולם';
|
||||
$this->assertEquals(0, preg_match(\Com\Tecnick\Unicode\Data\Pattern::ARABIC, $str));
|
||||
$this->assertEquals(1, preg_match(\Com\Tecnick\Unicode\Data\Pattern::RTL, $str));
|
||||
|
||||
$str = json_decode('"\u2067"'); // RLI
|
||||
$this->assertEquals(1, preg_match(\Com\Tecnick\Unicode\Data\Pattern::RTL, $str));
|
||||
|
||||
$str = json_decode('"\u202B"'); // RLE
|
||||
$this->assertEquals(1, preg_match(\Com\Tecnick\Unicode\Data\Pattern::RTL, $str));
|
||||
|
||||
$str = json_decode('"\u202E"'); // RLO
|
||||
$this->assertEquals(1, preg_match(\Com\Tecnick\Unicode\Data\Pattern::RTL, $str));
|
||||
}
|
||||
}
|
||||
58
vendor/tecnickcom/tc-lib-unicode-data/test/TypeTest.php
vendored
Normal file
58
vendor/tecnickcom/tc-lib-unicode-data/test/TypeTest.php
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* TypeTest.php
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*
|
||||
* This file is part of tc-lib-unicode-data software library.
|
||||
*/
|
||||
|
||||
namespace Test;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Type Test
|
||||
*
|
||||
* @since 2011-05-23
|
||||
* @category Library
|
||||
* @package UnicodeData
|
||||
* @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-unicode-data
|
||||
*/
|
||||
class TypeTest extends TestCase
|
||||
{
|
||||
public function testStrong(): void
|
||||
{
|
||||
$this->assertEquals(3, count(\Com\Tecnick\Unicode\Data\Type::STRONG));
|
||||
}
|
||||
|
||||
public function testWeak(): void
|
||||
{
|
||||
$this->assertEquals(7, count(\Com\Tecnick\Unicode\Data\Type::WEAK));
|
||||
}
|
||||
|
||||
public function testNeutral(): void
|
||||
{
|
||||
$this->assertEquals(4, count(\Com\Tecnick\Unicode\Data\Type::NEUTRAL));
|
||||
}
|
||||
|
||||
public function testExplicitFormatting(): void
|
||||
{
|
||||
$this->assertEquals(9, count(\Com\Tecnick\Unicode\Data\Type::EXPLICIT_FORMATTING));
|
||||
}
|
||||
|
||||
public function testUni(): void
|
||||
{
|
||||
$this->assertEquals(17720, count(\Com\Tecnick\Unicode\Data\Type::UNI));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user