ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
ConvertTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LegalDocuments\test\ConsumerToolbox
;
22
23
use
ILIAS\Refinery\Transformation
;
24
use ILIAS\LegalDocuments\test\ContainerMock;
25
use PHPUnit\Framework\TestCase;
26
use
ILIAS\LegalDocuments\ConsumerToolbox\Convert
;
27
28
require_once __DIR__ .
'/../ContainerMock.php'
;
29
30
class
ConvertTest
extends
TestCase
31
{
32
use ContainerMock;
33
34
public
function
testConstruct
(): void
35
{
36
$this->assertInstanceOf(Convert::class,
new
Convert
($this->mock(Transformation::class), $this->mock(Transformation::class)));
37
}
38
39
public
function
testGetter
(): void
40
{
41
$this->assertGetter(Convert::class, [
42
'fromString'
=> $this->mock(Transformation::class),
43
'toString'
=> $this->mock(Transformation::class),
44
]);
45
}
46
}
ILIAS\LegalDocuments\ConsumerToolbox\Convert
Definition:
Convert.php:26
ILIAS\LegalDocuments\test\ConsumerToolbox\ConvertTest
Definition:
ConvertTest.php:31
ILIAS\LegalDocuments\test\ConsumerToolbox\ConvertTest\testGetter
testGetter()
Definition:
ConvertTest.php:39
ILIAS\LegalDocuments\test\ConsumerToolbox\ConvertTest\testConstruct
testConstruct()
Definition:
ConvertTest.php:34
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:35
ILIAS\LegalDocuments\test\ConsumerToolbox
Definition:
BlocksTest.php:21
components
ILIAS
LegalDocuments
tests
ConsumerToolbox
ConvertTest.php
Generated on Sat Oct 18 2025 23:03:21 for ILIAS by
1.9.4 (using
Doxyfile
)